Re: [csswg-drafts] [scroll-animations-1] Time being overall scroll proportion on ViewTimeline leads to complicated architecture (#7312)

I agree that the only visible output of Scroll and View APIs should be 0-1 progress/percent and the resolved pixel offsets. If this API was being constructed in isolation there wouldn't be any discussion of time - it's just an unfortunate legacy.

I'm currently working on a scroll "timeline" API and indeed the mapping from scroll to animation is `animation.currentTime = animation.duration * scroll.progress`. 

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


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

Received on Monday, 4 July 2022 08:58:16 UTC