Embark on a design and coding adventure with our tutorial on creating and animating a microphone logo using HTML and CSS. In this concise yet comprehensive guide, we'll navigate logo design principles, emphasizing simplicity and visual balance. Seamlessly transitioning to animation, we'll bring the mic logo to life, making it dynamic and engaging. What sets this tutorial apart is its accessibility—no complex software, just the power of code.🎙️✨ #logoanimation #designtutorial #webdevelopment
Don't forget to like, share, and subscribe for more web development tutorials and tips. If you have any questions or need further assistance, feel free to leave a comment, and we'll be happy to help you out. Happy coding!
Like Us On Facebook:
/ codingwithnexusofficial
Follow Us On Instagram:
/ coding_with_nexus
Follow Us On TikTok:
/ coding.with.nexus



index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mic-Icon Animation</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="mic">
<i class="mic-icon"></i>
<div class="mic-bubble"></div>
</div>
</body>
</html>
style.css
body{
overflow: hidden;
background: #3b0e68;
background: radial-gradient(circle, #3b0e68 0% #1a084e 100%);
}
.mic{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
border-radius: 100%;
z-index: 2;
box-shadow: 0 0 20px 20px #1c084f;
}
.mic::before{
width: 400px;
height: 400px;
background-color: #1a084e;
}
.mic:after{
width: 250px;
height: 250px;
background-color: #2f1e5f;
animation: circle-size 0.8s linear infinite alternate;
}
.mic-icon{
box-sizing: border-box;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%) scale(5);
display: block;
width: 16px;
height: 12px;
border-bottom-left-radius:120px ;
border-bottom-right-radius:120px ;
border: 2px solid;
border-top: 0;
margin-top: 20px;
z-index: 3;
}
.mic-icon::before, .mic-icon::after{
content: '';
display: block;
box-sizing: border-box;
position: absolute;
}
.mic-icon::before{
width: 2px;
height: 8px;
top: calc(100% + 1px);
left: 50%;
transform: translate(-50%,0);
background-color: black;
}
.mic-icon::after{
border: 2px solid;
width: 8px;
height: 18px;
left: 50%;
top: -10px;
border-radius: 4px;
transform: translate(-50%,0);
}
.mic-bubble{
width: 400px;
height: 400px;
position: absolute;
border: 2px dotted white;
top: 50%;
left: 50%;
border-radius: 100%;
z-index: 1;
box-shadow: 10px -55px 30px 15px #b568db ,
24px -10px 47px 10px #9ca31b, -21px -25px 97px 10px
#5acee3, 51px 5px 17px 10px #1b7d8f, 3px 2px 77px 10px #f30bf5;
animation: shadow-rotate 1s linear infinite ;
transform-origin: center;
}@keyframes circle-size{
from{
width: 250px;
height: 250px;
}
to{
width: 300px;
height: 300px;
}
}
@keyframes shadow-rotate {
from{
transform: translate(-50%,-50%) rotate(0deg);
}
to{
transform: translate(-50%,-50%) rotate(360deg);
}
}
Comments
Post a Comment