Last active
February 3, 2018 14:23
-
-
Save shisama/0b73c1b31e4708008de9ebb472650546 to your computer and use it in GitHub Desktop.
pulse animation with 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
.pulsator { | |
display: block; | |
width: 15px; | |
height: 15px; | |
border-radius: 50%; | |
border-color: red; | |
background: red; | |
cursor: pointer; | |
box-shadow: 0 0 0 rgba(255,0,0, 0.4); | |
animation: pulse 1.5s infinite; | |
} | |
@keyframes pulse { | |
0% { | |
-moz-box-shadow: 0 0 0 0 rgba(255,0,0, 1); | |
box-shadow: 0 0 0 0 rgba(255,0,0, 1); | |
} | |
100% { | |
-moz-box-shadow: 0 0 0 12px rgba(255,0,0, 0.1); | |
box-shadow: 0 0 0 12px rgba(255,0,0, 0.1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment