Re: [csswg-drafts] [scroll-animations-1] view timeline insets (#7243)

> In https://drafts.csswg.org/scroll-animations-1/rewrite#view-timeline-inset, percent insets are proportional to the size of the scrollport rather than the subject. It is unclear to me which is more useful; however, an effect proportional to the size of the scrollport can be readily achieved by adding keyframes to an animation

While possible, it's an awkward API to require offsetting the specified keyframes. It seems reasonable to support this use case.

> but there is no counterpart based on the size of the subject.

[view-timeline-inset](https://drafts.csswg.org/scroll-animations-1/rewrite#view-timeline-inset) is designed to be similar to scroll-padding. We could probably add something similar to [scroll-margin](https://drafts.csswg.org/css-scroll-snap/#scroll-margin) for an element size proportional offset, though I'm not sure what the canonical name would be. Regardless, this feels as though it should be a separate issue.

Having only the start and end insets seems reasonable to me given that the timeline only conceptually operates along one axis or the other.

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


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

Received on Monday, 30 May 2022 19:19:46 UTC