-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
anim.begin callback never called if anim.delay is a function #79
Comments
I am seeing the same issue. However, if it is a named function, it is called. For example,
This does not give access to the |
@alexchantastic that's incorrect, is not anime that is calling the function, is you when you write |
@singuerinc yes, you're correct, but I think
|
Will look at this later, thanks for pointing this out! |
@juliangarnier I've proposed a fix for this in PR #88. |
fixed in v1.1.2 |
Since
begin
is executed whentime.current >= s.delay
then ifs.delay
is a function the statement always return false.https://github.com/juliangarnier/anime/blob/master/anime.js#L550
I'm trying to animate multiple objects and return a delay based on the index:
Check out this test I have made:
http://codepen.io/singuerinc/pen/jrBVdJ
My example is not complicated to solve since is using the index, but I'm not sure how to solve it, for instance, if you use a more complex calculation.
The text was updated successfully, but these errors were encountered: