Hi there! I'm trying to reset the starting position of an array of elements when I replay my main timeline animation. I've tried using TweenMax.set to set the original state of each element but I'm not having much luck.
var txtEffect = ["#w", "#s", "#r2", "#e", "#n", "#o2", "#v", "#l2", "#r1", "#a2", "#l1", "#u", "#l3", "#a1", "#o1", "#f1", "#f2" ];
function showTxt() {
tlTxtEffect = new TimelineMax({
paused: false,
});
// wind effect
tlTxtEffect.staggerTo(txtEffect, 3.75, {
cycle: {
top:function(){
return Math.random() * 300
},
left: function(){
return Math.random() * -700
},
scale: function(){
return Math.random() * 2
},
rotationX: function(){
return Math.random() * 20
},
rotation: function(){
return Math.random() * -360
}
},
ease:Power4.easeOut,
}, 0.03);
}
Thanks in advance,
Blake