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

Counting when animations end doesn't work properly #21

Closed
IanLunn opened this issue Jan 31, 2012 · 1 comment
Closed

Counting when animations end doesn't work properly #21

IanLunn opened this issue Jan 31, 2012 · 1 comment
Milestone

Comments

@IanLunn
Copy link
Owner

IanLunn commented Jan 31, 2012

When binding transitionEnd to an element, sometimes a transitionEnd is triggered more than once for a specific element. This means that on some frames, Sequence thinks the frame has ended animating sooner than it has and the next frame can be initiated.

@IanLunn
Copy link
Owner Author

IanLunn commented Jan 31, 2012

transitionEnd is triggered not just when a transition ends but also in other instances, when a transform scale is completed for example. Originally, I was just counting the number of elements being animated and not allowing the next frame to be initiated until the same number of transitionEnds had occurred.

I've now made it so that the elements being animated are stored in an object with a value of false. Only when a transitionEnd has completed for a specific element will it be given a value of true. When all elements are true, the next frame will then be initiated.

@IanLunn IanLunn closed this as completed Jan 31, 2012
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