scroll-snap-type
Widely availableSince 202297% of users
Enables scroll snapping on a container, forcing the scroll position to 'snap' to certain elements. It converts a smooth scroll into a stepped, slider-like experience.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since April 2022. Widely available since October 2024.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
none- Inherited
- No
- Applies to
- all elements
- Animation type
- discrete
Quick example
.carousel-container {
display: flex;
overflow-x: auto;
scroll-snap-type: x mandatory;
/* ensures the scroll always stops exactly on a child element */
}Values
noneblockinlinebothmandatoryproximityscroll-snap-type browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2022.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
69+
99+
11+
79+Mobile
69+Android
39+Android
11+iOS
Interop 2026 focus area. All major browsers are actively working to fix cross-browser inconsistencies for this feature in 2026. Learn more →