Open gabeblackbeard opened 8 years ago
$scroll-top
Thank you a ton for the reply! It seems there's some lag associated with it though, as sometimes when I scroll the window down and up, the header moves out of position for a few miliseconds. Is there really no way to perfectly reproduce the effect one would get with "position: fixed" in regular css? How would a gss user make one of those headers that stick to the top of the window?
Late reply. Calculating constraints on the fly at 60fps is not exactly something that can be done with just JavaScript. Maybe this library can we re-written in WebAssembly to gain better performance.
It appears "position: fixed" doesn't work in GSS as it did in regular CSS. I've made a header that I need to be at the top of the window, always, and it makes full use of GSS to center buttons, logo etc. Is there any property I can use that would take into account the scroll position of the viewport?