I want a CSS pseudo-selector for elements that are in the viewport #218
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
-
The kind of effects this can help with are currently done with an
IntersectionObserver
, but it would be nice if style changes could stay in CSS. Maybe a:in-viewport
(and:seen
) selector. A use case would be animating titles onto the page when the user scrolls down to it:https://webwewant.fyi/wants/63/
Beta Was this translation helpful? Give feedback.
All reactions