So I’ve played with scroll-based animations. It would be possible to create a similar effect with element-based offset, but it feels like a long way to go, and maybe not straightforward for something that is not directly related to animation…
That seems actually great. I think that using this approach together with dialog element would allow for great popover elements that are actually on top of everything without use of complicated js.