juliangarnier / anime

JavaScript animation engine
https://animejs.com
MIT License
50.42k stars 3.68k forks source link

begin() not called when animationDuration is 0 #808

Open kraftwer1 opened 2 years ago

kraftwer1 commented 2 years ago

Describe the bug I'm using animationDuration: 0 a lot to disable animations for initial rendering or e2e testing.

However, I noticed that the complete() is always called, while begin() isn't.

Expected behavior begin() and end() are always called to provide a deterministic behavior, regardless of animationDuration.

Desktop (please complete the following information):

DanKaplanSES commented 7 months ago

I'm not sure if this is still an open issue, but do you mean duration? I can't find anything in the documentation about animationDuration