Introducing Magic UI Pro - 50+ blocks and templates to build beautiful landing pages in minutes.

Command Palette

Search for a command to run...

Docs
Scroll Based Velocity

Scroll Based Velocity

Scrolling text whose speed changes based on scroll speed

Velocity Scroll
Velocity Scroll

Installation

Usage

import { VelocityScroll } from "@/components/magicui/scroll-based-velocity";
<VelocityScroll>Scroll Based Velocity</VelocityScroll>

Props

PropTypeDefaultDescription
classNamestring-The class name to be applied to the component
childrenReactNode-Content to be animated
defaultVelocitynumber5Base scroll velocity of text
numRowsnumber2Number of rows to be animated