+ 2
shape animation html5
<svg width="2000" height="2000"> <circle cx="400" cy="400" r="300" style="fill:green; stroke:yellow; stroke-width:3;"> <animate attributeName="x" from="0" to="300" dur="3s" fill="freeze" repeatCount="2"/> </circle> </svg> why the circle shape not animate??? I wrote this code
4 Answers
+ 7
Please post question link, rather than posting the whole code here
+ 6
Your circle is not moving 'cause you're animating for the attributeName "x" but there's no attribute called "x" in the <circle>. Use "cx" , "cy" or "r" attributes to animate. And by the next time, as Zlytherin suggested, kindly share the link of your code rather than posting entire code over here.
0
<svg width="150" height="200">
This tag is used for savage.
0
Shape animation in HTML5 refers to the use of HTML5 code to create dynamic and interactive shapes that move or change on a web page. It allows for the creation of engaging visuals without the need for external plugins. Additionally, HTML5 supports 2d animation video creation, enabling developers to incorporate animated shapes seamlessly into their web projects for enhanced user experience and visual appeal. you can explore more animation resources at : https://animationgravity.com/2d-animation