var children = animation.getChildren()
var numChildren = children.length;
for(var i = 0; i < numChildren; i++){
gsap.set("#tween" + i, {x:children[i].startTime() * pixelsPerSecond})
gsap.set("#rect" + i, {width:children[i].duration() * pixelsPerSecond})
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.