body {
background: #292f33;
text-align:center;
color: #FFF;
font-family: sans-serif;
}
.btntest {
width: 190px;
padding:4px;
border-radius: 5px;
background: red;
color: white;
z-index:299;
position: fixed;
}
.button {
position: fixed;
z-index:300;
left:10px;
display: inline-block;
height: 60px;
width: 60px;
border-radius: 50%;
background: rgba(255,255,255,1);
}
.button:hover {
animation: pulse 1.1s ease-out;
animation-iteration-count: infinite;
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(85,172,238,0);
}
25% {
box-shadow: 0 0 0 2px rgba(85,172,238,.4);
}
49.9% {
box-shadow: 0 0 0 5px rgba(85,172,238,0);
}
50% {
box-shadow: 0 0 0 0 rgba(85,172,238,0);
}
75% {
box-shadow: 0 0 0 3px rgba(85,172,238,.6);
}
99.9% {
box-shadow: 0 0 0 7px rgba(85,172,238,0);
}
100% {
box-shadow: 0 0 0 0 rgba(85,172,238,0);
}
}
@-webkit-keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(85,172,238,0);
}
25% {
box-shadow: 0 0 0 2px rgba(85,172,238,.4);
}
49.9% {
box-shadow: 0 0 0 5px rgba(85,172,238,0);
}
50% {
box-shadow: 0 0 0 0 rgba(85,172,238,0);
}
75% {
box-shadow: 0 0 0 3px rgba(85,172,238,.6);
}
99.9% {
box-shadow: 0 0 0 7px rgba(85,172,238,0);
}
100% {
box-shadow: 0 0 0 0 rgba(85,172,238,0);
}
}
<p>Pulse Effect</p>
<a class="button"></a>
<div class="btntest">dsdsds</div>