finished Promise not resolving on subsequent animation plays #62

Open
danwilson opened this Issue Feb 12, 2016 · 2 comments

Comments

Projects
None yet
4 participants
@danwilson

The finished Promise resolves as expected after the initial play with Element.animate(). However, it fails to resolve on finishes for subsequent animation.play() calls.

The behavior I am seeing is the Promise does eventually resolve... if you change playState after the animation finishes.

For a demo (with comparisons to onfinish which behaves as expected): http://codepen.io/danwilson/pen/ZQwWKz

Firefox Nightly appears to have the expected behavior implemented (but the polyfill overwrites it). So for an example of what I think the proper behavior is, try the following in the latest Firefox Nightly (and no polyfill): http://codepen.io/danwilson/pen/xZMKGZ

@rachelnabors

This comment has been minimized.

Show comment
Hide comment
@rachelnabors

rachelnabors Feb 12, 2016

This is actually turning into a major issue for my documentation's demos. :(

This is actually turning into a major issue for my documentation's demos. :(

@laggingreflex

This comment has been minimized.

Show comment
Hide comment
@laggingreflex

laggingreflex Aug 21, 2017

Is it/was it resolving at all for you? For me animation.finished is showing undefined related: #33

Is it/was it resolving at all for you? For me animation.finished is showing undefined related: #33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment