Hi
With TimelineLite.staggerFromTo is it possible in the context of 'fromVars' and 'toVars' to reference an array of values according to which index is being animated.
for example say I have three navigation buttons:
<div class="navButton"></div>
<div class="navButton"></div>
<div class="navButton"></div>
...and a JS object that contains x,y positions of where the three buttons should be animated to:
var navPositions = [ { x:100, y:100 }, { x:200, y:30 }, { x:55, y:97} ] //arbitrary numbers
...then reference an array or positions as opposed to static values
var tl = new TimelineLite();
tl.fromTo( $('.navButton'), 1, {x:0,y:0}, { navPositions[aTLprovidedIndex?] }, 0.2);
I would love to know if this is possible and to be shown an example if so...
Many thanks in advance