Skip to main content

Scroll Behavior

Utilities for controlling the scroll behavior of an element.

CSS Property:scroll-behavior
Classes:2

Scroll Behavior Classes

ClassCSS
scroll-autoscroll-behavior: auto;
scroll-smoothscroll-behavior: smooth;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

[scroll-behavior:value]

Responsive Variants

Apply scroll behavior utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:scroll-auto
768px+md:md:scroll-auto
1024px+lg:lg:scroll-auto
1280px+xl:xl:scroll-auto
1536px+2xl:2xl:scroll-auto