I thought this questions must have been asked before, but i couldnt find another thread for this. Anyways I want to repeat a function 20 times, and half a second between each time.
for (var i = 0; i < 20; i++)
{
setTimeout(function(){
mySwiper.update();
console.log("Test");}, 500);
}
But at the moment it just wait for half a second, then repeat itself 20 times in 1 go. Not sure how to do it. Thanks for your time