CSS scroll-snap-type Property Reference

The CSS scroll-snap-type property is a standard property in CSS Scroll Snap. Review its formal syntax, computed behavior, and practical declarations.

CSS scroll-snap-type Property Reference

The CSS scroll-snap-type property is a standard property in CSS Scroll Snap. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

scroll-snap-type overview

The CSS scroll-snap-type property is a standard property in CSS Scroll Snap. Review its formal syntax, computed behavior, and practical declarations.

The property is not inherited by default. Use an explicit global keyword when inheritance is intended.

Syntax and formal definition

scroll-snap-type formal syntax
FieldValue
Formal syntaxnone | [ x | y | block | inline | both ] [ mandatory | proximity ]?
Initial valuenone
Applies toallElements
InheritedNo
Percentagesno
Computed valueasSpecified
Animation typediscrete
Mediainteractive
Specification groupCSS Scroll Snap
StatusStandard

Practical examples

These declarations demonstrate valid ways to set scroll-snap-type. The initial and inherit global keywords remain available even when a property-specific value is preferable.

scroll-snap-type live example
CSS .reset-example { scroll-snap-type: initial; } .inherit-example { scroll-snap-type: inherit; } @supports (scroll-snap-type: initial) { .supported { scroll-snap-type: initial; } }

Description

The CSS scroll-snap-type property is a standard property in CSS Scroll Snap. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: scroll-snap-type
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies