VelocityMarquee
Big text that drifts on its own, speeds up and slants with page scroll, and reverses when you scroll back. Text.
Open playgroundAbout
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
npm i @ashutoshswamy/smouiUsage
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.
numberdefault60
More text components
- CounterCounts up on an overdamped spring: fast start, soft landing.
- FlowTextText filled with a slowly flowing gradient. The ends match, so the loop never jumps.
- ProximityTextLetters swell and lift as the cursor nears them, strongest under the pointer, and settle on springs.
- ScrambleTextText decodes from noise into place, again on every hover.
- ScrollFillTextWords light up one by one as you scroll past, like ink reaching the page.
- SlotTextEach letter is a slot reel that spins through random letters and lands on the right one, left to right.