Skip to content

Some exemplary implementations of the Intersection Observer API

Notifications You must be signed in to change notification settings

matuzo/IntersectionObserver-Examples

Repository files navigation

IntersectionObserver Examples

IntersectionObserver

The IntersectionObserver API provides an API to understand the visibility and position of DOM elements relative to a containing element or to the top-level viewport.

https://googlechrome.github.io/samples/intersectionobserver/index.html

Or in other words: IntersectionObserver lets you know when an element enters or leaves the viewport without the need of calling getBoundingClientRect() or scroll event handlers.

Examples

Browser Support

For now Chrome 51+ and Chrome Canary, but there's a polyfill in the making.

Additional ressources

About

Some exemplary implementations of the Intersection Observer API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published