VelocityMarquee

Big text that drifts on its own, speeds up and slants with page scroll, and reverses when you scroll back. Text.

Open playground

About

VelocityMarquee is a React component in the Text category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { VelocityMarquee } from "@ashutoshswamy/smoui" and set text, speed.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { VelocityMarquee } from "@ashutoshswamy/smoui";

<VelocityMarquee text="Scroll with intent  /  " className="text-6xl font-semibold" />

Props 2

text

Line to repeat.

string
speed

Base drift in px per second.

numberdefault 60