Created
July 28, 2017 05:46
-
-
Save ShahinAhmed7/35767a3b57d27dfc84ab91d681c09939 to your computer and use it in GitHub Desktop.
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
<div class="featured-icon"> | |
<span class="info-icon pulse"><i class="fa fa-info"></i></span> | |
</div> | |
.pulse { | |
cursor: pointer; | |
animation: pulse 2s infinite; | |
} | |
.pulse:hover { | |
animation: none; | |
} | |
@-webkit-keyframes pulse { | |
0% { | |
-webkit-box-shadow: 0 0 0 0 rgba(224,58,40, 0.8); | |
} | |
70% { | |
-webkit-box-shadow: 0 0 0 10px rgba(204,169,44, 0); | |
} | |
100% { | |
-webkit-box-shadow: 0 0 0 0 rgba(204,169,44, 0); | |
} | |
} | |
@keyframes pulse { | |
0% { | |
-moz-box-shadow: 0 0 0 0 rgba(224,58,40, 0.8); | |
box-shadow: 0 0 0 0 rgba(224,58,40, 0.8); | |
} | |
70% { | |
-moz-box-shadow: 0 0 0 10px rgba(204,169,44, 0); | |
box-shadow: 0 0 0 10px rgba(204,169,44, 0); | |
} | |
100% { | |
-moz-box-shadow: 0 0 0 0 rgba(224,58,40, 0.8); | |
box-shadow: 0 0 0 0 rgba(204,169,44, 0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment