I didn't try the polyfill, but theoretically, slap that on the demo and all set? I quickly decided that I had solved my particular problem with a simple observer and moved on to other parts, and bookmarked all that stuff for when I wanted to do more.
December 5, 2025 at 9:24 AM
I didn't try the polyfill, but theoretically, slap that on the demo and all set? I quickly decided that I had solved my particular problem with a simple observer and moved on to other parts, and bookmarked all that stuff for when I wanted to do more.
I freeze up trying to make sense of React. It kinda looks like it's doing the same things, but with a lot more drama? I see an intersectionObserver that *probably* works about like my little class swap JS.
I freeze up trying to make sense of React. It kinda looks like it's doing the same things, but with a lot more drama? I see an intersectionObserver that *probably* works about like my little class swap JS.
the way that my stuck header has a new element fading in is a small-scale demonstration of this (it's just not tied to a second scrolling interaction, but could be)
December 5, 2025 at 8:59 AM
the way that my stuck header has a new element fading in is a small-scale demonstration of this (it's just not tied to a second scrolling interaction, but could be)
if you imagine, though, the stuck header here is just a blank space for the next state you have an observer for — like, it's moved into the right layer, but above viewport or otherwise invisible and then scrolling towards it makes it pop in
December 5, 2025 at 8:57 AM
if you imagine, though, the stuck header here is just a blank space for the next state you have an observer for — like, it's moved into the right layer, but above viewport or otherwise invisible and then scrolling towards it makes it pop in
I shared scroll-state in a reply to my earlier comment but it still needs a polyfill on a lot of browsers. It's possible! not sure it's currently better than using JS and familiar tools, though.
December 5, 2025 at 8:55 AM
I shared scroll-state in a reply to my earlier comment but it still needs a polyfill on a lot of browsers. It's possible! not sure it's currently better than using JS and familiar tools, though.
this is not too much unlike what Claude helped me with a couple of weeks ago, the difference being that you want to also watch the scroll direction before showing the stuck header (but probably move the container as here, just offscreen it until scroll direction is triggered
this is not too much unlike what Claude helped me with a couple of weeks ago, the difference being that you want to also watch the scroll direction before showing the stuck header (but probably move the container as here, just offscreen it until scroll direction is triggered