html5 - Starting pulse from center -


I have created a pulsing animation that starts from the corner, I want to start it from the center of the circle, the CSS below What should I do to start the animation from the center of the circle?

  .animation-container {width: auto; Height: 500px;} .neikkake {width: 100px; Height: 100px; Limit-Radius: 50%; Background: orange; Margin: 0 auto; Status: Relative; Top: 40%; Animation: First 2S Linear Infinite Optional; WebKit-Animation: First 2S Linear Infinite Optional;} @ -WebKit -Khrefr First {0% {width: 0px; Height: 0 pixels; Background: Violet;} 10% {Width: 10px; Height: 10px; Background: Indigo;} 20% {width: 20px; Height: 20px; Background: blue;} 30% {width: 30px; Height: 30px; Background: green;} 40% {width: 40px; Height: 40px; Background: yellow;} 50% {width: 50px; Height: 50px; Background: orange;} 60% {width: 60px; Height: 60px; Background: orange;} 70% {width: 70px; Height: 70px; Background: red;} 80% {width: 80px; Height: 80px; Background: orange;} 90% {width: 90px; Height: 90px; Background: yellow;} 100% {width: 100px; Height: 100 pixels; Background: Green;}}  

And here is a link to CodePan:

Thank you.

CSS changes:

status: complete; Top: 50%; Left: 50%; Conversions: Translation (-50%, -50%);

snippet:

  & lt; Div class = "content animation-container" & gt; & Lt; Div class = "aniCircle" & gt; & Lt; / Div & gt; & Lt; / Div & gt;  


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -