question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pause() not always pause the animation

See original GitHub issue

When 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:closed
  • Created 7 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fcobcncommented, May 23, 2017

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.

1reaction
sarcadasscommented, Oct 2, 2016

@nejcgalof I fixed the bug, can you confirm with the latest version of the lib please ?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found