I want to be able to apply styles to a "sticky" element when it’s stuck #126
aarongustafson
started this conversation in
Wants
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I had a project where I needed to change background color of a "sticky" element when it moves from being in the normal flow to being "stuck" to the top of the viewport. It’s not possible to do that in CSS. It feels like this should be a pseudo-class (much like
:invalid
, etc. in forms). Perhaps something like:stuck
?https://webwewant.fyi/wants/73/
Beta Was this translation helpful? Give feedback.
All reactions