scroll-behavior
Widely availableSince 202297% of users
Sets the behavior for a scrolling box when scrolling is triggered by navigation or CSSom scrolling APIs. smooth creates a nice transition instead of an instant jump.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since March 2022. Widely available since September 2024.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
auto- Inherited
- No
- Applies to
- scrolling boxes
- Animation type
- notAnimatable
Quick example
html {
scroll-behavior: smooth;
/* enables smooth scrolling for anchor links page-wide */
}Values
autosmoothscroll-behavior 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
61+
36+
15.4+
79+Mobile
61+Android
36+Android
15.4+iOS