The functions to and from can be used to set important attributes for transformation animations. They only take one float value as an argument, which is enough for skewX and skewY. But translate and scale can take two floats and rotate takes three. Therefore I've added the functions from2, from3, to2 and to3. I imagine their names are in the spirit of the map functions.
The functions
to
andfrom
can be used to set important attributes for transformation animations. They only take one float value as an argument, which is enough forskewX
andskewY
. Buttranslate
andscale
can take two floats androtate
takes three. Therefore I've added the functionsfrom2
,from3
,to2
andto3
. I imagine their names are in the spirit of the map functions.The svg tutorial which got me started on this: http://tutorials.jenkov.com/svg/svg-animation.html
Here's an ellie with a rotate animation in action: https://ellie-app.com/3qq59rhvx9za1
Reproducing the ellie code for posterity: