0

How do I make it go to and fro

<svg width="1000" height="250"> <rect width="150" height="150" fill="orange"> <animate attributeName="x" from="0" to="300" dur="3s" fill="freeze" repeatCount="2"/> </rect> </svg>

25th Jul 2019, 7:35 AM
Michael Tito
Michael Tito - avatar
6 Réponses
+ 1
try this <animate attributeName="cx" from="0" to="300" dur="3s" fill="freeze" repeatCount="2">
25th Jul 2019, 9:44 AM
dozule
dozule - avatar
+ 1
You can use CSS animation also: https://code.sololearn.com/WvEsOXKf1DQb/?ref=app
25th Jul 2019, 3:41 PM
dozule
dozule - avatar
+ 1
You're welcome
25th Jul 2019, 5:02 PM
dozule
dozule - avatar
0
Tried it Didn't work🤔
25th Jul 2019, 2:15 PM
Michael Tito
Michael Tito - avatar
- 1
Thanks
25th Jul 2019, 4:15 PM
Michael Tito
Michael Tito - avatar