You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
anime({
targets: 'div',
translateX: 100,
duration: 2000,
loop: 3, // Play the animation 3 times
direction: 'reverse', // Play the animation in reverse
autoplay: false // Animation paused by default
});
Would I just have to do:
$('div').stop(true);
anime({
targets: 'div',
translateX: 100,
duration: 2000,
loop: 3, // Play the animation 3 times
direction: 'reverse', // Play the animation in reverse
autoplay: false // Animation paused by default
});
Or is there a better way I'm supposed to do this?
Thanks
The text was updated successfully, but these errors were encountered:
How do I use .stop(true) with AnimeJS?
Assuming I have code:
Would I just have to do:
Or is there a better way I'm supposed to do this?
Thanks
The text was updated successfully, but these errors were encountered: