Black Lives Matter! ✊🏾

scroll-snap-type

Specifies whether a scroll container is a scroll snap container, how strictly it snaps, and which axes are considered. 4.1. Scroll Snapping Rules: the scroll-snap-type property

Links about scroll-snap-type

  1. CSS Scroll Snap - Ahmad Shadeed

    posted on by iShadeed

    An in-depth article on CSS scroll snap, why to use, how it works, and lots of examples.

Code sample

html {
scroll-snap-type: block; /* applied to main document scroller */
}