//Question
I know these are more Velo questions. However, I got to this page when I searched for EditorX Velo forum.
import wixAnimations from ‘wix-animations’ ;
let animation = wixAnimations . timeline (
{
“repeat” : 0 ,
“repeatDelay” : 0 ,
“yoyo” : false
});
function doItDammit ( ){
for ( let i = 0 ; i < 10 ; i ++){
animation . add ( $w ( ‘#movingThingy’ ), { x : i * 100 , duration : 100 }, 100 )
if ( i === 10 ){
animation . play ();
}
}
}
When I update animations at run time there can be a delay.
So, I would like to create them before they play using variables, I get; like screen width and such but, in the background, then when done play them.
However, when I do this, I believe only the first or last one is added.
It doesn’t really make sense that this does not work.
Rather annoying but, is this me or is this them?