Re: [csswg-drafts] [scroll-animations-1] Allow named ranges to be used with math functions (#8852)

Just had another related request where someone wanted to run an animation from `exit 100% + 30px` to `exit 100% - 30px`. That way the animation would run during “the last 60px of exiting”.

Relying on percentages to run the animation – e.g. from `exit 95%` to `exit 100%` – wasn’t an option, as some of the elements are much more taller then others, resulting in values from as low as 40px distance up to 180px.

Right now they are working around it by injecting a sentinel div of 60px height at the bottom of the element, which they are then tracking.

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


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

Received on Thursday, 15 June 2023 15:22:31 UTC