Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onanimationend and onanimationstart fired before the time and twice! #97

Open
perymimon opened this issue Jun 3, 2022 · 0 comments
Open

Comments

@perymimon
Copy link

Does this work in other browsers? No - I can reproduce the problem in another browser just test it on firefox and it reproduce

Steps to reproduce the problem:

  1. create a list of 2 general div HTML elements with some CSS animation on animation-play-state: paused or pause with devtool and attach some log to there above mention events
  2. prepend another element div HTML elements

test working case are here: https://codesandbox.io/s/onanimationend-vanilla-8zeu1y?file=/index.html

Problem Description:
when element X prepend before an element Y with animation (paused), it triggers "onanimationend" on element Y. after the animation on Y real finish "onanimationend" trigger again
test working case are here: https://codesandbox.io/s/onanimationend-vanilla-8zeu1y?file=/index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant