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

begin() is not called when duration: 0 #853

Open
manake opened this issue Apr 13, 2023 · 0 comments
Open

begin() is not called when duration: 0 #853

manake opened this issue Apr 13, 2023 · 0 comments
Assignees
Milestone

Comments

@manake
Copy link

manake commented Apr 13, 2023

The documentation says:

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

But in the actual code begin() is never called for duration: 0 (for duration: 1 it works):

{
    duration: 0,
    begin: function(){
        console.log('test', this); // Doesn't work
    },
    complete: function(){
        console.log('test 2', this); // Works
    },
},

Anime.js v3.2.1 (PLEEEEEAAAASE give us v4)

@juliangarnier juliangarnier self-assigned this Oct 25, 2023
@juliangarnier juliangarnier added this to the 4.0.0 milestone Oct 25, 2023
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

2 participants