| Class | Description | |
|---|---|---|
snap-noneSets scroll-snap-type to none, disabling scroll snapping on this container. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .snap-none | Sets scroll-snap-type to none, disabling scroll snapping on this container. |
snap-xSets scroll-snap-type: x. Enables horizontal scroll snapping on a container. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .snap-x | Sets scroll-snap-type: x. Enables horizontal scroll snapping on a container. |
snap-ySets scroll-snap-type: y. Enables vertical scroll snapping on a container. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .snap-y | Sets scroll-snap-type: y. Enables vertical scroll snapping on a container. |
snap-bothSets scroll-snap-type to snap on both axes, using the configured strictness variable. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .snap-both | Sets scroll-snap-type to snap on both axes, using the configured strictness variable. |
snap-mandatorySets scroll-snap-type mandatory mode. Always snaps to an alignment point. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .snap-mandatory | Sets scroll-snap-type mandatory mode. Always snaps to an alignment point. |
snap-proximitySets the scroll-snap strictness variable to proximity, snapping only when close to a snap point. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .snap-proximity | Sets the scroll-snap strictness variable to proximity, snapping only when close to a snap point. |