0

What does the value represent in SVG when animating shapes?

For example what is 300 and 0 value in this code? <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>

5th Sep 2020, 6:28 PM
Strakoš
Strakoš - avatar
1 ответ
+ 2
There a orange rectangle will be move from 0px to 300px second time.
5th Sep 2020, 6:31 PM
Muhammadamin
Muhammadamin - avatar