Arc Scroll

Curved Scroll Carousel for React

Cards that travel along a semicircle as you scroll, entering at the bottom right and leaving at the bottom left.

  • Scroll
  • Cards
  • Motion

Uses motion, clsx, tailwind-merge

Open in ChatGPTOpen in Claude
spacing18°
scrollPerCard320px
tilttrue
apexGap16px
stiffness120
damping30
<ArcScroll />

The demo follows as you drag.

Take this demo to your coding agent.
Add this moment from KeyframeUI to our project and adapt it to our content.

Arc Scroll: Cards that travel along a semicircle as you scroll, entering at the bottom right and leaving at the bottom left.

1. Install it:
   npx shadcn@latest add @keyframeui/arc-scroll-demo
   (If the CLI can't find @keyframeui, use https://keyframeui.com/r/arc-scroll-demo.json instead.)
   It adds the demo, components/arc-scroll-demo.tsx, and the component, components/ui/arc-scroll.tsx.

2. Make it ours: our copy, data, images and colors. Keep the structure the motion depends on. If we only need the effect, use <ArcScroll> on its own.

3. These props set its feel. Change them before you change the file:
   - spacing (default 18): Degrees between neighboring cards along the arc.
   - scrollPerCard (default 320): Pixels of scroll it takes to move one card along the arc.
   - tilt (default true): Rotate each card to follow the curve. Turned off for reduced motion.
   - apexGap (default 16): Minimum gap in pixels between two cards as they trade places at the top. Cards spread apart near the top to make room, so the overlap never flips suddenly.
   - stiffness (default 120): Stiffness of the spring that smooths scrolling. Higher catches up with the scroll faster.
   - damping (default 30): Damping of the spring that smooths scrolling. Lower lets the cards overshoot and swing back.

4. Don't change, in components/ui/arc-scroll.tsx:
   - Every card's position, rotation, scale, opacity and z-index is a `useTransform` of one `turn` motion value, so scrolling never re-renders a card.
   - Each card rides a zero-size anchor that moves by transform only; the card is centered on it, so it rotates and scales around its own center and nothing animates layout.
   - Near the top, `apexSpread` pushes neighbors apart (`spread * tanh(a / spacing)`), so two cards never overlap in the frame they trade z-index.
   - The stage is `sticky` and the runway after it is `(count - 1) * scrollPerCard` tall; scroll progress across the section is the turn.
   - Under reduced motion the turn follows raw scroll progress with no spring, and cards don't tilt.
   Its timing is all in the TIMING block at the top of that file.

Docs: https://keyframeui.com/components/arc-scroll.md

Installation

Add the component on its own with the CLI, or copy the file in by hand.

The CLI writes components/ui/arc-scroll.tsx and installs motion, clsx and tailwind-merge. It needs the @keyframeui registry in components.json; add it once per project.

npx shadcn@latest add @keyframeui/arc-scroll

Examples

Finished sections built with Arc Scroll. Each one installs whole, with the component included.

Case Studies

A portfolio hero: project cards on the arc, with a pinned headline and a caption for the project at the top.

Take this demo to your coding agent.
Add this moment from KeyframeUI to our project and adapt it to our content.

Arc Scroll: Cards that travel along a semicircle as you scroll, entering at the bottom right and leaving at the bottom left.
This demo, Case Studies: A portfolio hero: project cards on the arc, with a pinned headline and a caption for the project at the top.

1. Install it:
   npx shadcn@latest add @keyframeui/arc-scroll-case-studies-demo
   (If the CLI can't find @keyframeui, use https://keyframeui.com/r/arc-scroll-case-studies-demo.json instead.)
   It adds the demo, components/arc-scroll-case-studies-demo.tsx, and the component, components/ui/arc-scroll.tsx.

2. Make it ours: our copy, data, images and colors. Keep the structure the motion depends on. If we only need the effect, use <ArcScroll> on its own.

3. These props set its feel. Change them before you change the file:
   - spacing (default 18): Degrees between neighboring cards along the arc.
   - scrollPerCard (default 320): Pixels of scroll it takes to move one card along the arc.
   - tilt (default true): Rotate each card to follow the curve. Turned off for reduced motion.
   - apexGap (default 16): Minimum gap in pixels between two cards as they trade places at the top. Cards spread apart near the top to make room, so the overlap never flips suddenly.
   - stiffness (default 120): Stiffness of the spring that smooths scrolling. Higher catches up with the scroll faster.
   - damping (default 30): Damping of the spring that smooths scrolling. Lower lets the cards overshoot and swing back.

4. Don't change, in components/ui/arc-scroll.tsx:
   - Every card's position, rotation, scale, opacity and z-index is a `useTransform` of one `turn` motion value, so scrolling never re-renders a card.
   - Each card rides a zero-size anchor that moves by transform only; the card is centered on it, so it rotates and scales around its own center and nothing animates layout.
   - Near the top, `apexSpread` pushes neighbors apart (`spread * tanh(a / spacing)`), so two cards never overlap in the frame they trade z-index.
   - The stage is `sticky` and the runway after it is `(count - 1) * scrollPerCard` tall; scroll progress across the section is the turn.
   - Under reduced motion the turn follows raw scroll progress with no spring, and cards don't tilt.
   Its timing is all in the TIMING block at the top of that file.

Docs: https://keyframeui.com/components/arc-scroll.md

Timeline

A company history with tighter spacing, the current year highlighted and a year rail that follows along.

Take this demo to your coding agent.
Add this moment from KeyframeUI to our project and adapt it to our content.

Arc Scroll: Cards that travel along a semicircle as you scroll, entering at the bottom right and leaving at the bottom left.
This demo, Timeline: A company history with tighter spacing, the current year highlighted and a year rail that follows along.

1. Install it:
   npx shadcn@latest add @keyframeui/arc-scroll-timeline-demo
   (If the CLI can't find @keyframeui, use https://keyframeui.com/r/arc-scroll-timeline-demo.json instead.)
   It adds the demo, components/arc-scroll-timeline-demo.tsx, and the component, components/ui/arc-scroll.tsx.

2. Make it ours: our copy, data, images and colors. Keep the structure the motion depends on. If we only need the effect, use <ArcScroll> on its own.

3. These props set its feel. Change them before you change the file:
   - spacing (default 18): Degrees between neighboring cards along the arc.
   - scrollPerCard (default 320): Pixels of scroll it takes to move one card along the arc.
   - tilt (default true): Rotate each card to follow the curve. Turned off for reduced motion.
   - apexGap (default 16): Minimum gap in pixels between two cards as they trade places at the top. Cards spread apart near the top to make room, so the overlap never flips suddenly.
   - stiffness (default 120): Stiffness of the spring that smooths scrolling. Higher catches up with the scroll faster.
   - damping (default 30): Damping of the spring that smooths scrolling. Lower lets the cards overshoot and swing back.

4. Don't change, in components/ui/arc-scroll.tsx:
   - Every card's position, rotation, scale, opacity and z-index is a `useTransform` of one `turn` motion value, so scrolling never re-renders a card.
   - Each card rides a zero-size anchor that moves by transform only; the card is centered on it, so it rotates and scales around its own center and nothing animates layout.
   - Near the top, `apexSpread` pushes neighbors apart (`spread * tanh(a / spacing)`), so two cards never overlap in the frame they trade z-index.
   - The stage is `sticky` and the runway after it is `(count - 1) * scrollPerCard` tall; scroll progress across the section is the turn.
   - Under reduced motion the turn follows raw scroll progress with no spring, and cards don't tilt.
   Its timing is all in the TIMING block at the top of that file.

Docs: https://keyframeui.com/components/arc-scroll.md

Testimonials

Wide quote cards with tilt turned off so the text stays level, plus page dots.

Take this demo to your coding agent.
Add this moment from KeyframeUI to our project and adapt it to our content.

Arc Scroll: Cards that travel along a semicircle as you scroll, entering at the bottom right and leaving at the bottom left.
This demo, Testimonials: Wide quote cards with tilt turned off so the text stays level, plus page dots.

1. Install it:
   npx shadcn@latest add @keyframeui/arc-scroll-testimonials-demo
   (If the CLI can't find @keyframeui, use https://keyframeui.com/r/arc-scroll-testimonials-demo.json instead.)
   It adds the demo, components/arc-scroll-testimonials-demo.tsx, and the component, components/ui/arc-scroll.tsx.

2. Make it ours: our copy, data, images and colors. Keep the structure the motion depends on. If we only need the effect, use <ArcScroll> on its own.

3. These props set its feel. Change them before you change the file:
   - spacing (default 18): Degrees between neighboring cards along the arc.
   - scrollPerCard (default 320): Pixels of scroll it takes to move one card along the arc.
   - tilt (default true): Rotate each card to follow the curve. Turned off for reduced motion.
   - apexGap (default 16): Minimum gap in pixels between two cards as they trade places at the top. Cards spread apart near the top to make room, so the overlap never flips suddenly.
   - stiffness (default 120): Stiffness of the spring that smooths scrolling. Higher catches up with the scroll faster.
   - damping (default 30): Damping of the spring that smooths scrolling. Lower lets the cards overshoot and swing back.

4. Don't change, in components/ui/arc-scroll.tsx:
   - Every card's position, rotation, scale, opacity and z-index is a `useTransform` of one `turn` motion value, so scrolling never re-renders a card.
   - Each card rides a zero-size anchor that moves by transform only; the card is centered on it, so it rotates and scales around its own center and nothing animates layout.
   - Near the top, `apexSpread` pushes neighbors apart (`spread * tanh(a / spacing)`), so two cards never overlap in the frame they trade z-index.
   - The stage is `sticky` and the runway after it is `(count - 1) * scrollPerCard` tall; scroll progress across the section is the turn.
   - Under reduced motion the turn follows raw scroll progress with no spring, and cards don't tilt.
   Its timing is all in the TIMING block at the top of that file.

Docs: https://keyframeui.com/components/arc-scroll.md

Props

children

TypeReact.ReactNode

The cards. Each child is placed on the arc.

spacing

TypenumberDefault18

Degrees between neighboring cards along the arc.

radius

Typenumber

Arc radius in pixels. Defaults to 75% of the stage width, capped at 900.

scrollPerCard

TypenumberDefault320

Pixels of scroll it takes to move one card along the arc.

tilt

TypebooleanDefaulttrue

Rotate each card to follow the curve. Turned off for reduced motion.

containerRef

TypeReact.RefObject<HTMLElement | null>

Scroll container to track. Defaults to the window. The container must be positioned (e.g. relative).

stageClassName

TypestringDefault"h-dvh"

Classes for the pinned stage. Set its height here.

cardClassName

Typestring

Classes for the wrapper around every card.

apexGap

TypenumberDefault16

Minimum gap in pixels between two cards as they trade places at the top. Cards spread apart near the top to make room, so the overlap never flips suddenly.

stiffness

TypenumberDefault120

Stiffness of the spring that smooths scrolling. Higher catches up with the scroll faster.

damping

TypenumberDefault30

Damping of the spring that smooths scrolling. Lower lets the cards overshoot and swing back.

overlay

TypeReact.ReactNode

Content pinned inside the stage, behind the cards (headlines, captions, progress). Position it with absolute classes.

onActiveChange

Type(index: number) => void

Called with the index of the card nearest the top whenever it changes.

className

Typestring

Extra classes for the outer section.