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>
6 odpowiedzi
+ 1
try this
<animate attributeName="cx" from="0" to="300"
dur="3s" fill="freeze" repeatCount="2">
+ 1
You can use CSS animation also:
https://code.sololearn.com/WvEsOXKf1DQb/?ref=app
+ 1
You're welcome
0
Tried it
Didn't work🤔
- 1
Thanks