You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CSS Transitions spec, in the Starting of Transitions section, discusses the notion of a running transition. The content of that list is made clear in the context of resolving styles and dealing with the various transition- properties, but I'm not certain what should happen when a running transition is manipulated via the Web Animations API.
Consider this example:
consttarget=document.querySelector("div");target.style.transition="margin-left 1s"requestAnimationFrame(()=>{// This starts a transitions, the element now has a running transition.target.style.marginLeft="200px";});setTimeout(()=>{consttransition=target.getAnimations()[0];// This will yield a "transitioncancel" event. Is this animation now no longer// considered to be a running transition?transition.timeline=null;setTimeout(()=>{// This will resume the animation for the last quarter of its duration.// Is this animation now a running transition or just some animation// outside of the list of running transitions? transition.timeline=document.timeline;},250);},500);
Essentially, my question boils down to whether an animation is considered a running transition just by virtue of having been created via a CSS transition property and being in a running play state, or is it considered to be a running transition only when created via a CSS transition property and until it enters a play state other than running.
The text was updated successfully, but these errors were encountered:
(But for what it's worth, I believe it should be the latter and will be defined in terms of the owning element concept such that it is only a running transition when it has an owning element.)
birtles
changed the title
[css-transitions-1] Effect of manipulating a CSSTransition via the Web Animations API on the list of running transitions
[css-transitions-2] Effect of manipulating a CSSTransition via the Web Animations API on the list of running transitions
Oct 22, 2018
The CSS Transitions spec, in the Starting of Transitions section, discusses the notion of a running transition. The content of that list is made clear in the context of resolving styles and dealing with the various
transition-
properties, but I'm not certain what should happen when a running transition is manipulated via the Web Animations API.Consider this example:
Essentially, my question boils down to whether an animation is considered a running transition just by virtue of having been created via a CSS
transition
property and being in a running play state, or is it considered to be a running transition only when created via a CSStransition
property and until it enters a play state other than running.The text was updated successfully, but these errors were encountered: