Viewport Detect

Viewport Detect Viewport Detect toggles CSS classes on an element (or a separate target) when it enters or leaves the viewport, using an IntersectionObserver. It is the simplest way to trigger a state change on scroll, such as switching a section to a dark theme or activating a …

This guide is for Canvas license holders

Verify your Canvas license or subscribe to a plan to unlock the full documentation, including this guide.

Verify license or subscribe
Was this page helpful?