Skip to content

Instantly share code, notes, and snippets.

@florinpop17
Last active October 22, 2019 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save florinpop17/975f8e56de171730197fd94ed64c9fbb to your computer and use it in GitHub Desktop.
Save florinpop17/975f8e56de171730197fd94ed64c9fbb to your computer and use it in GitHub Desktop.
Pulse CSS
<a class="blob" href="google.com"> Check Price </a>
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)
}
}
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