I have tried to stop animation before complete the animation in TweenMax. Initially div top is '0px'. I am animating it to top '90px' in 3 seconds. If I click on button I want stop it. How to get it?
TweenMax.to("div", 3, {
top: '90px',
});
<div id="stop">stop</div>