Components / component

Marquee Gallery

v1.0.0 · premium

Two rows of photos drifting in opposite directions, pausing on hover or focus.

Marquee Gallery demo

Implementation

Two rows of photos drifting in opposite directions, pausing on hover or focus.

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 MarqueeGallery({ rows, label, duration = 40, height = 160, ink, className }: {
  /** One list of photos per row. */
  rows: readonly (readonly MarqueePhoto[])[];

Quality evidence

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

Changelog

v1.0.0 · Two rows of photos drifting in opposite directions, pausing on hover or focus.

Frequently asked questions

Does the gallery need JavaScript?

No. It is a single CSS animation of one transform, so it costs no animation frame loop.

Why are there two copies of each row?

Moving a row by exactly half its width lands on an identical copy, so the loop has no seam. The second copy is hidden from assistive technology.