CSS selector for element that's in view

Viewed 326

Is there a CSS selector for things that are in view, i.e. visible within the viewport?

1 Answers

You have to use Javascript to achieve that. The modern way is to use getBoundingClientRect().

Related