Components / effect

Velocity Marquee

v1.0.0 · premium

A marquee that drifts at a steady pace and speeds up, or reverses, with how fast you scroll.

Velocity Marquee demo

Implementation

A marquee that drifts at a steady pace and speeds up, or reverses, with how fast you scroll.

Framework
React 19.3.1 with TypeScript
Motion
Native CSS and browser APIs. No GSAP required.
Available modes
build
Version
1.0.0 · published

Source code

Download source ZIP
export function VelocityMarquee({ children, speed = 90, sensitivity = 1, separator = '\u2014', ink, className }: {
  children: string;
  /** Pixels per second at rest. */

Quality evidence

Export tested in 2 consumer projects with chromium, firefox, webkit. Evidence recorded on .

Changelog

v1.0.0 · A marquee that drifts at a steady pace and speeds up, or reverses, with how fast you scroll.

Frequently asked questions

How does it read the scroll speed?

It compares window.scrollY between animation frames, so it works with native scrolling and with smooth scroll libraries alike.

Does the marquee run while it is off screen?

No. It pauses while it is off screen and while the tab is hidden, and it does not move with reduced motion.