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

The begin function is not called when duration is 0. #893

Open
DanKaplanSES opened this issue May 5, 2024 · 0 comments
Open

The begin function is not called when duration is 0. #893

DanKaplanSES opened this issue May 5, 2024 · 0 comments

Comments

@DanKaplanSES
Copy link

DanKaplanSES commented May 5, 2024

Describe the bug
The begin function is not called when duration is 0. The documentation says it should be:

Both begin() and complete() callbacks are called if the animation's duration is 0.

To Reproduce
Steps to reproduce the behavior:

  1. Load this codepen.io: https://codepen.io/Daniel-Kaplan/pen/RwOXrrJ?editors=1111
  2. Read the console

Expected behavior
The console should print "Begin" 0-"Begin" 3 and "standalone begin". It only prints "complete" logs.

If you change the duration to > 0, it prints as expected.

Desktop (please complete the following information):

  • OS: Win 10
  • Browser: Firefox
  • Version 125.0.3 (64-bit)

Using anime.js 3.2.2

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