Currently, I am working on developing a captivating 'pulsating rings' animation that revolves around a circular image with the use of CSS animations.
The image itself is a circle measuring 400px in width. Although I have successfully implemented an overall pulsating effect for the entire image, I am faced with the challenge of creating and animating separate pulsating rings surrounding the image.
My preference is to keep the image static while allowing the rings to pulsate dynamically around it.
Here's my current code snippet;
HTML
<div class="container">
<img class="pulse" src="http://freevector.co/wp-content/uploads/2012/02/51770-placeholder-in-a-circle-outline.png"></div>
CSS
.container {
padding: 20px;
}
@-webkit-keyframes pulse_animation {
0% {
-webkit-transform: scale(1);
}
50% {
-webkit-transform: scale(1.1);
}
100% {
-webkit-transform: scale(1);
}
}
.pulse {
-webkit-animation-name: 'pulse_animation';
-webkit-animation-duration: 3000ms;
-webkit-transform-origin: 70% 70%;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
-webkit-animation: pulsate 3s ease-out;
-webkit-animation-iteration-count: infinite;
}
@-webkit-keyframes pulsate {
0% {
-webkit-transform: scale(1, 1);
opacity: 1;
}
50% {
-webkit-transform: scale(1.1, 1.1);
opacity: 1;
}
100% {
-webkit-transform: scale(1, 1);
opacity: 1;
}
}
A live demo can be found on this fiddle link.
The desired outcome is to achieve ring animations akin to the ones showcased in this example.
I believe I am quite close to achieving this effect. Any tips or suggestions would be greatly appreciated.