Scroll Behavior

Utilities for controlling the scroll behavior of an element.

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

Usage

Use the scroll-smooth utilities to enable smooth scrolling within an element.

<html class="scroll-smooth">
  <!-- ... -->
</html>