Smooth Scroll

Smooth Scroll: Smooth inertial scrolling wrapper with frame-rate sync. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Smooth Scroll

npx motion-ui-skill add smooth-scroll

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • lenis
  • react
  • tailwind-merge

Source files

Smooth Scroll

Component from Motion UI: smooth-scroll

Install

npx motion-ui-skill add smooth-scroll

Dependencies

  • clsx
  • lenis
  • react
  • tailwind-merge

Usage

"use client";

import { SmoothScroll as SmoothScroll } from "@/components/craft/smooth-scroll";

export function Example() {
  return (
    <div className="p-6">
      <SmoothScroll />
    </div>
  );
}

Browse this category