Re: [csswg-drafts] [animation-triggers-1] Should play-forwards and play-backwards have no effect if the animation has already reached its end? (#13643)

> What I thought makes more sense is that .button-1 will only advance the animation forwards, not restart it when it is already finished and you click the button instead. Similarly for .button-2 except in the reverse direction. These would function as play and rewind buttons buttons like on a tape player.

So IIUC you want the `play-forwards` `play-backwards` actions to not rewind ever? Or is it a special case when you have multiple triggers on same animation?

The way I see it, you specified 2 stateless triggers, so they should always act on every trigger.
So either you use a stateful trigger here, or we could add 2 new actions like `play-forwards-no-rewind` `play-backwards-no-rewind`.

> I think I had mentioned that I was in favour of this in a prior call, I opened https://github.com/w3c/csswg-drafts/issues/13710 to explicitly discuss it.

That's possible you suggested it and I was too thick to follow at the time (: Thanks for opening!

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


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

Received on Tuesday, 24 March 2026 16:22:19 UTC