pause() not always pause the animation
See original GitHub issueWhen I call granimInstance.pause();
animation sometimes not paused, but if I check granimInstance.isPaused
, this return true.
This happend if I have one granim instance and have 5 buttons which 3 buttons for playing and changing states , one button for pause and one for clear. On different changes I must pressed button for pause twice, for working pause, but on the first time, granimInstance.isPaused
, after granimInstance.pause();
return true.
Any idea why is happening this, or how to fix cancel animation Frame work always on first time.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Animation.pause() - Web APIs - MDN Web Docs
The pause() method of the Web Animations API's Animation interface suspends playback of the animation. Syntax. animation.pause();
Read more >How to Play and Pause CSS Animations with CSS Custom ...
Another way to pause animations is to set animation-duration to 0s . The animation is actually running, but since it has no duration,...
Read more >How do you pause a CSS animation with an HTML button?
I'm trying to pause a CSS animation with an HTML button click, using JS to carry out the pause. So far I've tried...
Read more >Problem with pause() - GSAP - GreenSock
So Everything work fine except that the animation doesn't pause when my cursor leave the svg (but "pause" appear in the console which...
Read more >Problem with a pause menu with animations - Unity Forum
First of all, I hope I am posting this thread to the relevant forum. I thought about posting it to the animations forum...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I will try to strip down the project as soon as posible, it may be related to how blaze templates work in meteor. Codepen is not relevant in this case. For android I’m using the cordova/phonegap compile functionality of meteor.
@nejcgalof I fixed the bug, can you confirm with the latest version of the lib please ?