Last active
June 8, 2020 06:46
-
-
Save ratul16/daed8756b955879b0bd6b240b9101fd0 to your computer and use it in GitHub Desktop.
Simple Box-shadow pulse effect
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
.pulseEffect { | |
/* width: 80px; | |
background: rgba(40, 167, 69,1); */ | |
box-shadow: 0 0 0 0 rgba(40, 167, 69,1); | |
animation: pulse 2s infinite; | |
} | |
@keyframes pulse { | |
0% { | |
/* transform: scale(0.95); */ | |
box-shadow: 0 0 0 0 rgba(40, 167, 69,.5); | |
} | |
70% { | |
/* transform: scale(1); */ | |
box-shadow: 0 0 0 20px rgba(40, 167, 69,0); | |
} | |
100% { | |
/* transform: scale(0.95); */ | |
box-shadow: 0 0 0 0 rgba(40, 167, 69,0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment