CSS · Properties — CSS Scroll Snap
scroll-snap-type
The CSS scroll-snap-type property. Initial value: none. Not inherited.
Syntax
scroll-snap-type: none | [ x | y | block | inline | both ] [ mandatory | proximity ]?Example
Try it
Notes
Media: interactive. Applies to: allElements. Computed value: asSpecified.
More in this group
Learn this in the course
Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.