Skip to content

finished Promise not resolving on subsequent animation plays #62

Open
@danwilson

Description

@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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions