Can i make svg image move? | Sololearn: Learn to code for FREE!
+ 2

Can i make svg image move?

i want to try making it move either hover or auto move.

3rd Jul 2016, 12:46 PM
Michael Jing Del Rosario
Michael Jing Del Rosario - avatar
4 Réponses
+ 3
If you just want the shape to move, use <animate>. If you want to animate the 'transform' attribute of a shape, use <animateTransform>.
3rd Jul 2016, 2:59 PM
ZinC - avatar
+ 3
Sundown effect: <svg> <circle r="100" cx="100" cy="100" fill="orangered"> <animate attributeName="cy" from="100" to="200" dur="3s" fill="freeze"/> </circle> </svg>
3rd Jul 2016, 3:26 PM
ZinC - avatar
+ 2
sorry i don't know any way in html though you can java script as js is more suitable for website behaviour than html.
3rd Jul 2016, 1:45 PM
Aashish Rathee
Aashish Rathee - avatar
what does cx cy r do
21st Jul 2016, 8:08 AM
Dragon-codex - avatar