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

Animation: Allow animateCallback to register elements to use with stopAnimation #186

Open
keichinger opened this issue May 13, 2019 · 0 comments

Comments

@keichinger
Copy link
Contributor

The simple animate versions are using a WeakMap to track which elements have been animated in order to call stopAnimation on them. However, using animateCallback the entire tracking and infrastructure process is ignored, thus making canceling/stopping animations on the same element using animate and animateCallback in conjunction unnecessarily hard.

Since you could theoretically do anything inside an animateCallback-callback, I'd recommend passing in extra parameter(s) to said callback that allows you to register/unregister elements to achieve desired effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant