-
Notifications
You must be signed in to change notification settings - Fork 715
[web-animations-1] Should calling reverse()
set effect.timing.direction
to "reverse"
?
#2543
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
Comments
Thank you for filing this issue. So, to answer your question, You can determine if an animation is being played backwards by looking at I'm closing this issue for now but please let me know if this does not satisfy your concern. |
Your clarification is helpful. Has adding a specific property to the |
I'm afraid it hasn't. It's usually as simple as |
Would
though, of course, |
The playback direction is a static timing property of an effect. It describes from which way the keyframes are iterated over, including alternating backwards and forwards. The playback rate is a runtime property of an animation used to change how the linked effect is viewed at the current time. As an analogy the playback direction is a property of a DVD that describes whether the credits scroll up or down, while the playback rate is a property of the DVD player that describes whether you are fast-forwarding, rewinding, or playing at the moment. |
[css-foo]
https://drafts.csswg.org/web-animations/#directed-progress; https://drafts.csswg.org/web-animations/#dom-animation-reverse
At Chromium 65, calling
reverse()
does not appear to change the value ofeffect.timing.direction
.The specification does not explicitly state that
effect.timing.direction
is changed based on the current or previous direction of the animation.Should calling
reverse()
seteffect.timing.direction
to"reverse"
?How to determine the current or previous (is paused) direction of an animation?
.
The text was updated successfully, but these errors were encountered: