Re: [csswg-drafts] [scroll-animations-1] Triggering scroll-based animations once (#7478)

But if you currently scroll back up – even if you have `animation-fill-mode` set to `none` – the animation restarts again, playing from end to start and still linked to scroll. Think of a `view-timeline`-based animation that fades in an image during the `entry 0 entry 100%` range: right now, it will fade out again if you scroll back to top.

The idea for `once` is to prevent the animation from restarting again once you have passed the `entry 100%` scroll offset. So from the moment the image was entirely faded in _(and a first `animationend` was reached)_, the animation of the SDA will become inactive and never come active again. The `animation-fill-mode` applies as it normally would.

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


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

Received on Tuesday, 22 August 2023 09:34:35 UTC