Hello
I'm using TimeLineLite.
When you resize the window, it is necessary to recalculate the offset. How to do it?
Sample:
var tl = new TimelineLite({paused: true}); var tweener = TweenMax.to($("#mylayer"), 10, {left: "-10%", delay: 1}); $(window).resize(function (e) { tweener.updateTo({left:"20%"}, false); });
updateTo - not working (
Can u help me?