Scroll velocity

Also called scroll-based velocity, velocity marquee, or scroll-reactive marquee

Marquee rows that race while you scroll and turn around when you scroll back up, driven by how fast the page is moving.

What is Scroll velocity?

A scroll velocity effect takes a marquee, a row of large words or logos drifting sideways, and ties its speed to how fast the page scrolls. At rest the row drifts slowly. A quick flick of the wheel sends it racing, and scrolling up turns it around. Two rows running in opposite directions are the classic layout.

The speed comes from scroll velocity: how many pixels the page moves per second. In Motion, useScroll gives scrollY, useVelocity turns it into pixels per second, and useSpring smooths the bursts a mouse wheel sends. A useAnimationFrame loop then moves the row by its base speed times a multiplier from that velocity, and wraps the offset by the width of one copy so the loop never shows a seam.

Use it as a bold divider between sections on portfolios, agency sites, and launch pages. Cap the multiplier so a fast trackpad swipe doesn’t smear the text, pause the loop while it is off screen, and keep the rows still for people who prefer reduced motion. The moving copies are decorative, so hide them with aria-hidden and give screen readers the text once.

Often confused with

Marquee
A marquee scrolls at one steady speed on its own. A scroll velocity row starts from a marquee and speeds up, slows down, or reverses with the page’s scroll.
All terms

Marquee

A strip of logos or text that scrolls sideways in an endless loop, often used for "trusted by" rows and announcements.

Velocity

The speed and direction an element already has when an animation starts, which a spring carries forward so a flick flows into what follows.

Scroll-driven animation

An animation whose progress is tied directly to the scroll position, so it moves forward as you scroll down and rewinds as you scroll up.

Horizontal scroll section

A pinned section where scrolling down moves a row of cards sideways, turning vertical scrolling into horizontal movement.

Build it with Layerwise

Describe your app, watch it run in a live preview, and publish it with a database, storage, and sign-in built in.