MDN self-hosted library · e01.org

Snap positions

Snap positions are points where the scrollport stops moving after the scrolling operation completes. Setting up snap positions allows you to create a scrolling experience of paging through content instead of needing to drag content into view.

no runnable cells glossary-definition upstream source

Snap positions are points where the scrollport stops moving after the scrolling operation completes. Setting up snap positions allows you to create a scrolling experience of paging through content instead of needing to drag content into view.

Snap positions are set up on a scroll container. See the CSS Scroll Snap properties.

See also

  • Scroll snap