I got two related questions:
- I am doing some text animation for the text to hide and show at a particular time, not sure which method is correct, either just do setTimeout which seems not working all the time, or I found about Promise.all which I never get it to work.
setTimeout( function () { $w( “#text5” ).hide(); }, 3700 );
setTimeout( function () { $w( “#text37” ).show( “glide” , { “duration” : 1200 , “delay” : 0 , “angle” : 0 , “distance” : 145 }) ; }, 3700 );
//Promise.all([
//(() => { setTimeout(function() { $w(‘#text5’).hide(); }); 2500 })(),
//(() => { setTimeout(function() { $w(‘#text37’).show(); }); 2500 })(),
//(() => { setTimeout(function() { $w(‘#text37’).hide(); }); 3700 })(),
- the whole thing of question 1 should only active in a particular fullwidethslide page, but apparently the setTimeout run on page load, any pausing and skipping of the slides make the animation.
sequence all in wrong orders.
Any way to fix it?? Thanks.