Re: [csswg-drafts] [scroll-animations-1] Where is the range of threshold values checked? (#5203)

Having the ability to — for example — set `end 1.2` as the from-offset sure comes in handy, as it allows you to add some “breathing room” to all of your animations.

A from-offset of `selector(#element) end 1.2` basically translates to “the element is 1/5th over the bottom edge”. In that case the animation will not start when `#element` is stuck against the bottom, but only after it's "120%" into the scrollport.


Also see https://github.com/w3c/csswg-drafts/issues/6068, where taking `scroll-padding` into account is suggested.

Both these use-cases could be allowed I guess:

- Over/undershooting the `threshold` is calculated in relation to block-size of the `#element`
- `scroll-padding` (if expressed as a percentage) is calculated in relation to the block-size of the scrollport

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


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

Received on Wednesday, 3 March 2021 22:06:48 UTC