Hi I was just wondering how I can execute a for loop with delays
var currentPosition2 = 1;
for(i=0;i<numberOfSlides;i++) {
//alert(currentPosition2);
currentPosition2 = currentPosition2 + 1;
jQuery('#slideInner').animate({
'marginLeft' : slideWidth*(-currentPosition2)
});
}
at the moment all 3 slides animate at one time, I'd like to make a delay of 3 seconds between each loop and 3 seconds before the loop starts,
any help would be appreciated,
thanks