top of page
Forum Posts
vinithtk
May 07, 2020
In Coding with Velo
How can i set duration for "ArrayList" which shuffles after few seconds in a loop? The code below shuffle text after every page refresh.
// For full API documentation, including code examples, visit https://wix.to/94BuAAs $w.onReady(function () { });
const ArrayList = [ 'Live', 'Work', 'Play', ];
$w.onReady(function(){ const randomIndex = Math.floor(Math.random() * (ArrayList.length)); $w('#text33').text = ArrayList[randomIndex];
return ArrayList; });
Thank you!
0
1
127
vinithtk
More actions
bottom of page