I want to make an infinite ripple effect and it should work fine, but thats not the case. For some reason the keyframe functions dont seem to have effect. What I am missing?
/* CUSTOM CSS */
.rippler {
display: block;
width: 200px;
height: 200px;
margin: 160px auto;
-webkit-animation: ripple 0.6s linear infinite;
border-radius: 100px;
background: blue;
}
@-webkit-keyframes ripple {
0% {
box-shadow: 0 0 0 0 rgba(blue, 0.1),
0 0 0 20px rgba(blue, 0.1),
0 0 0 60px rgba(blue, 0.1),
0 0 0 100px rgba(blue, 0.1);
}
100% {
box-shadow: 0 0 0 20px rgba(blue, 0.1),
0 0 0 60px rgba(blue, 0.1),
0 0 0 100px rgba(blue, 0.1),
0 0 0 140px rgba(blue, 0);
}
}
<span class="rippler"></span>
A pretty similar code is working fine: https://codepen.io/jaguar66/pen/RrWjZp?editors=1100
box-shadowisn't displayed as expected.