Hello. Thanks for the priceless GSAP. However, not sure why stagger isn't honoured with this code:
function getButtonsInAnimation(callback) {
var i, spots, spot, tween = new TimelineLite({paused: true, onComplete: callback});
for(i in spots = shuffle(hotspots)) {
spot = spots[i];
tween.add(TweenLite.fromTo(spot, 0.3,
{scale:0, alpha:0, left:290, top:168},
{scale:1, alpha:1,
left:parseInt(spot.css('left')),
top:parseInt(spot.css('top')),
ease:Expo.easeOut}
), undefined, 'start', 0.05);
}
return tween;
}
As you can see, I'm adding new TweenLite object with TimelineLite.add() method. But it executes added tweens in sequence, ignoring the stagger value. Also tried to pass stagger value to the TimelineLite constructor. Same result. As of position property of TimelineLite.add() method, I also tried values, without any luck: '+=0', 0, false. Is there something I misunderstand?