Re: [csswg-drafts] [scroll-animations-1] View progress contain of a sticky positioned elements on the edges (#8298)

@flackr I think I see what you mean. I had to implement this in JS,  and kind of came with the same results - [here](https://github.com/wix-incubator/fizban/blob/master/src/view.js#L129).
I had to get initial layout of offsets from the top of the document, and then walk that branch down again and add to the offsets every sticky interval that falls within the animation's duration, or just delay it if it falls before the start.

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


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

Received on Tuesday, 14 March 2023 15:21:23 UTC