|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Created by Coding Hindi ---> | |
<title>Bell Pulse Animation</title> | |
<!--Font Awesome CDN--> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css"> | |
<div class="container"> | |
<div class="pulse"> | |
<i class="fas fa-bell"></i> | |
</div> | |
<a href="https://www.youtube.com/channel/UC5bkSPKJNRroCEQ7UEeFP3g" target="_blank">Learn To Code</a> | |
</div> |
A Pen by Coding Hindi on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Created by Coding Hindi */ | |
*, | |
*:before, | |
*:after{ | |
padding: 0; | |
margin: 0; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
body{ | |
background-color: #E5E5FA; | |
} | |
.container{ | |
height: 450px; | |
width: 350px; | |
position: absolute; | |
margin: auto; | |
left: 0; | |
right: 0; | |
top: 0; | |
bottom: 0; | |
} | |
.pulse{ | |
height: 130px; | |
width: 130px; | |
background: -webkit-gradient( | |
linear, | |
left top, left bottom, | |
from(#8A82FB), | |
to(#407ED7) | |
); | |
background: -o-linear-gradient( | |
#8A82FB, | |
#407ED7 | |
); | |
background: linear-gradient( | |
#8A82FB, | |
#407ED7 | |
); | |
position: absolute; | |
margin: auto; | |
left: 0; | |
right: 0; | |
top: 100px; | |
border-radius: 50%; | |
display: -ms-grid; | |
display: grid; | |
place-items: center; | |
color: #ffffff; | |
font-size: 45px; | |
} | |
.pulse:before, | |
.pulse:after{ | |
content: ""; | |
position: absolute; | |
height: 100%; | |
width: 100%; | |
background-color: #8A82FB; | |
opacity: 0.7; | |
border-radius: 50%; | |
z-index: -1; | |
} | |
.pulse:before{ | |
-webkit-animation: pulse 2s ease-out infinite; | |
animation: pulse 2s ease-out infinite; | |
} | |
.pulse:after{ | |
-webkit-animation: pulse 2s 1s ease-out infinite; | |
animation: pulse 2s 1s ease-out infinite; | |
} | |
@-webkit-keyframes pulse{ | |
100%{ | |
-webkit-transform: scale(2.5); | |
transform: scale(2.5); | |
opacity: 0; | |
} | |
} | |
@keyframes pulse{ | |
100%{ | |
-webkit-transform: scale(2.5); | |
transform: scale(2.5); | |
opacity: 0; | |
} | |
} | |
a{ | |
display: black; | |
width: 100%; | |
position: absolute; | |
bottom: 0; | |
background-color: #202020; | |
padding: 10px 0; | |
text-align: center; | |
font-family: "Poppins",sans-serif; | |
color: #ffffff; | |
text-decoration: none; | |
font-size: 18px; | |
border-radius: 5px; | |
letter-spacing: 0.5px; | |
} |