karpovsystems
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by karpovsystems
-
-
After killing animation and setting a new style, the new animation starts from the wrong position
Steps for reproducing:
-
Create new tween
let tween = TweenMax.to($test, 5, {x: 100});
-
Kill the tween while animating
tween.kill();
-
Change target style
$test.style.transform = 'translate3d(0,0,0)';
-
Start new animation
TweenMax.to($test, 5, {x: 100});
See the Pen bGbKdjZ by karpovsystems (@karpovsystems) on CodePen
-
Create new tween
Animation starts from the wrong position
in GSAP
Posted
Thank you
I will use
TweenMax.set(target, {x: value});
for changing positionSee the Pen KKPeVzZ by karpovsystems (@karpovsystems) on CodePen