Re: [csswg-drafts] [scroll-animations-1] Bring back Scroll Offsets (#7575)

Some authors who have been playing around with the polyfill have raised similar issues, asking about offsets no longer being available.

1. https://github.com/flackr/scroll-timeline/issues/64
2. https://github.com/flackr/scroll-timeline/issues/76

The recent [Motion One scroll library](https://motion.dev/dom/scroll#scroll-offsets) that enables JS-based Scroll-Linked Animations also offers this ability.

As @flackr suggested above, it could be achieved by having [`animation-delay-start`](https://drafts.csswg.org/scroll-animations-1/#propdef-animation-delay-start) and [`animation-delay-end`](https://drafts.csswg.org/scroll-animations-1/#propdef-animation-delay-end) accept lengths as their value.

- `animation-delay-start = [ <time> | <timeline-range-name> <percentage> | <length> ]`
- `animation-delay-end = [ <time> | <timeline-range-name> <percentage> | <length> ]`



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


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

Received on Wednesday, 21 September 2022 07:28:42 UTC