Last active
October 22, 2019 18:32
-
-
Save florinpop17/975f8e56de171730197fd94ed64c9fbb 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
<a class="blob" href="google.com"> Check Price </a> |
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
a.blob { | |
/* Button styling */ | |
background-color: rgb(83, 194, 34); | |
border: solid 1px #000; | |
border-radius: 5px; | |
color: #fff; | |
display: inline-block; | |
font-size: 16px; | |
font-family: Muli, "Helvetica Neue", sans-serif; | |
font-weight: bold; | |
letter-spacing: 1px; | |
padding: 15px 30px; | |
text-decoration: none; | |
text-align: center; | |
/* The pulse effect */ | |
box-shadow: 0 0 0 0 rgba(83, 194, 34, 1); | |
transform: scale(1); | |
animation: shadow-pulse 1.25s infinite; | |
} | |
@keyframes shadow-pulse { | |
0% { | |
box-shadow:0 0 0 0px rgba(83, 194, 34, 1); | |
} | |
100% { | |
box-shadow:0 0 0 10px rgba(0,0,0,0) | |
} | |
} |
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
a.blob { | |
/* Button styling */ | |
background-color: rgb(83, 194, 34); | |
border: 1px solid rgb(83, 194, 34); | |
border-radius: 5px; | |
color: #fff; | |
display: inline-block; | |
font-size: 16px; | |
font-family: Muli, "Helvetica Neue", sans-serif; | |
letter-spacing: 1px; | |
padding: 15px 30px; | |
text-decoration: none; | |
/* The pulse effect */ | |
box-shadow: 0 0 0 0 rgba(83, 194, 34, 1); | |
transform: scale(1); | |
animation: pulse 2s infinite; | |
} | |
@keyframes pulse { | |
0% { | |
transform: scale(0.97); | |
box-shadow: 0 0 0 0 rgba(83, 194, 34, 0.7); | |
} | |
70% { | |
transform: scale(1); | |
box-shadow: 0 0 0 8px rgba(83, 194, 34, 0); | |
} | |
100% { | |
transform: scale(0.97); | |
box-shadow: 0 0 0 0 rgba(83, 194, 34, 0); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment