I want to create a simple pulsed animation in a circle svg element. I use transform: scale(..,..) animation, but for some reason it moves the whole circle inside its container, and not just scales the element itself.
Here's the animation:
animation: pulsate 2s infinite linear; @keyframes pulsate { 0% {transform: scale(0.1, 0.1); opacity: 0.0;} 50% {opacity: 1.0;} 100% {transform: scale(1.2, 1.2); opacity: 0.0;} }
And here is an example (including the same animation applied to a div that gives the desired result):
http://codepen.io/anon/pen/jWqVyb
Any ideas on how to create this effect? A circle can be placed anywhere in svg , and it must maintain this position.
source share