[Animation] `animationcomplete` event only fires upon first completion
See original GitHub issueWhen an animation completes, the animationcomplete
event only fires upon the first completion, and does not fire for any subsequent completions of the same animation.
The animationbegin
event fires as expected, but animationcomplete
does not.
I’m experiencing this issue in A-Frame 0.7.*
as well as 0.8.0
with aframe-animation-component 4.*.*
in Firefox, Chrome, Edge on Windows 10 (all I’ve tested).
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Why is aframe animation complete event firing multiple times
Move the code below outside of the click handler so it runs only once per animationcomplete__fadein event. $(loading_sky).on("animationcomplete ...
Read more >Phaser 3 API Documentation - Namespace: Events
The Animation Complete Event. This event is dispatched by a Sprite when an animation playing on it completes playback. This happens when the...
Read more >Element: animationend event - Web APIs | MDN
The animationend event is fired when a CSS Animation has completed. If the animation aborts before reaching completion, such as if the ...
Read more >animationend Event - W3Schools
Definition and Usage. The animationend event occurs when a CSS animation has completed. For more information about CSS Animations, see our tutorial on...
Read more >Detect when a CSS animation has finished in JavaScript
... going to take a look at the " animationend " event in JavaScript which allows you to detect when a CSS animation...
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
Now fixed with
startEvents
since that restarts and creates new animation each time (and presumably in that case you are triggering the animation start so you can tell already when you are restarting it).loop: true
I guess will never complete, and it should fire if it’s set to an integer.Yep, seems to work as expected for
animation
now, but notanimation-timeline
. I created #216 for this.