Skip to content

Marquee

A seamless infinite marquee: the cursor slows it down and nudges it with inertia, rows run in opposite directions, and keyboard focus pauses it.

Plan
Free · MIT
Dependencies
React only
Props
9 (8 adjustable)

Free forever

MIT license, for personal and commercial projects. See installation

  • Design
  • Motion
  • Detail
  • Code
  • Texture
  • Rhythm
  • Detail
  • Code
  • Texture
  • Rhythm
  • Design
  • Motion

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
itemsReactNode[]"Design, Motion, Detail…"Marquee items: strings or any React node.
speednumber70Base speed, in px per second.
direction"left" | "right""left"Direction of the first row.
rowsnumber2Number of stacked rows; each one runs opposite to the previous.
gapnumber36Space between items, in px.
hoverSpeednumber0.14Speed while hovered, as a fraction of the base speed (0 = full stop).
pushnumber0.6How much the cursor pushes the row as it moves over it (0 = none).
fadebooleantrueFades out the edges.
labelstring"Marquee"Accessible label for the marquee.

Installation

Install it

1Install the package

npm i furin-ui

2Import it

import { Marquee } from "furin-ui";

Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.

Dependencies

React
18 or later
Other libraries
none
License
MIT

Each file ships its own CSS: there's nothing else to install.

Keep exploring

  • A knurled metal knob you turn by dragging.

    Navigation

  • Accessible tabs (tablist, arrow keys, Home and End) with a pill that slides on a spring: the leading edge arrives first and stretches the pill as it crosses.

    Navigation

  • An accessible accordion (aria-expanded, regions, arrow keys, Home and End) whose regions open on a real spring: the height bounces as it lands and the content comes in from blurry to sharp.

    Navigation