Last active
May 24, 2017 21:12
-
-
Save garrettmac/f31fca8f560fbb72225d6572baa63033 to your computer and use it in GitHub Desktop.
pulse.css
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
.pulse {display: block;box-shadow: 0 0 0 rgba(204,169,44, 0.4);animation: pulse 2s infinite;} | |
.pulse:hover {animation: none;} | |
@-webkit-keyframes pulse { | |
0% { | |
-webkit-box-shadow: 0 0 0 0 rgba(204,169,44, 0.4); | |
} | |
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(204,169,44, 0.4); | |
box-shadow: 0 0 0 0 rgba(204,169,44, 0.4); | |
} | |
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(204,169,44, 0); | |
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
s