-
Notifications
You must be signed in to change notification settings - Fork 84
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
How to destroy an animation at the end of its life? #627
Comments
This certainly should be sufficient. @alancutter can probably look at the details here. We're in the process of transitioning to a new version of the polyfill, might be worth taking a look at your use cases there too: https://github.com/web-animations/web-animations-next |
OK, thanks for the tip. I will stop tweaking this library, and start tweaking your new one! :D |
It's important to know that there are currently a number of features
We will implement all of this in time (and pull requests are welcome, of Cheers, On Wed, Jul 30, 2014 at 7:54 PM, joeytwiddle [email protected]
|
Thanks so much, I was wondering about the status. You could consider adding your status list to the README.md of web-animations-next, for other curious consumers. I do need some of those features, but I will watch and experiment with the new project for now anyway. |
For example I had an animation with
iterations: Infinite
, or I had an animation I was manually retriggering, but now I no longer need it.I assume I should indicate that the animation is no longer wanted by doing:
But I am experiencing two issues:
applyAnimatedValues()
because they are still listed in_animProperties
.style
has been masked by anAnimatedCSSStyleDeclaration
and if I write style properties, they are not set in the DOM because they are still listed inisAffectedProperty
.(For the first case, I experimented with clearing inactive targets from the Compositor, but this is not complete: I still have to call
_deregisterFromTimeline()
myself.)Should we be trying to cleanup
_animProperties
andisAffectedProperty
when an animation is cancelled? (There is already a TODO that mentions we should try to cleanup the globalPLAYERS
list.)I wonder if
isAffectedProperty
is redundant, given the existence of_animProperties
. Is there any reason we can't peek attarget._animProperties
when we want to determine if a property is affected?The text was updated successfully, but these errors were encountered: