What does the value represent in SVG when animating shapes? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuesta
+ 2
There a orange rectangle will be move from 0px to 300px second time.
5th Sep 2020, 6:31 PM
Muhammadamin
Muhammadamin - avatar