Re: [csswg-drafts] [css-animations-2][web-animations-2] How should `animation-play-state` interact with `animation-trigger`? (#12064)

> @ydaniv That sounds fine but it makes me wonder, does `cancel()` still cause the animation to have no effect (including the "put it in the before phase with a zero time" behavior)?
>
> That is, can a user still do `element.getAnimations().forEach(anim => anim.cancel()` and be sure that the element is no longer affected by animations on it? (With the exception of animations on ancestors/descendants)

Sure, any method should apply its effect, so calling `cancel()` should terminate that animation and any effect it applies.

-- 
GitHub Notification of comment by ydaniv
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12064#issuecomment-2800688908 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 14 April 2025 07:13:15 UTC