Curious, does anyone know how to create a staggerTo() tween with a group of three.js elements. When I tween a position/scale/rotation using .to() it looks like this:
TweenMax.to(element.scale, 6, {
x: 0.4,
y: 0.4,
z: 0.4,
ease: Quad.easeOut
});
I've found a way to make it work, basically just loop through and create a new array. I'm really just curious if anyone has a better way. This is what I have currently:
$.each(elements, function(index, elem) {
staggerElements.push(elem.position);
});
returnData.push(
TweenMax.staggerTo(staggerElements, 12, {
x: 0,
y: 0,
z: 1.5,
ease: Quad.easeOut
}, 0.1)
);