I've got a very simple rotating banner working using this code:
function init(){
var tl = new TimelineMax({repeat:2, repeatDelay:0});
var slides = [].slice.call(document.querySelectorAll(".slide"));
tl.staggerFrom(slides, 1, {y: '-=0', autoAlpha: 0, ease:Power4.easeInOut}, 2.0);
}
init();
I'm trying to eliminate the delay and "whiteout" effect between the last and first slide respectively. I'd like to have a uniform transitions between all the slides including from the last to the first. I did try to simply repeat the slides in the array (e.g.: [ 1, 2, 3, 1, 2, 3, 1, 2, 3 ], but the timeline doesn't seem to like that and stops after the first set of 3.
I also searched the forums far and wide and could not find an example or solution. Thank you!