Rollup

Long read · 9 min

The quiet return of the paper map

Walkers are folding maps again. Not for nostalgia: a map shows the whole valley at once, and a phone shows you a blue dot.

By Ines Calder
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-rollup

About this component

A long-read card printed on paper: Roll up winds the article up from its bottom edge into a paper tube that climbs to the headline, thickening as it takes up the page, with the paper shading as it curls over; Unroll lets it back down.

Dependencies
None
Difficulty
Intermediate
Reduced motion
Respected
Theme
Light and dark
Follows page color-scheme

Triggers3

  • Click
  • State change
  • Card

Techniques3

  • CSS transition
  • Gradient
  • State machine

Accessibility

Keyboard and screen readers

The button is a real toggle with aria-expanded; the article text is hidden from assistive tech while rolled.

Reduced motion

The article closes without the roll travelling.

Use it in anything you build, commercial and client work included. Licence

More cards

See all
Studio Monitor 2$189
New in · sealed
Shrink WrapGet code
Daily motion prompt#14

Animate a ball that is afraid of the floor.

Medium
1 / 5
SmearGet code
The sound of roomsSmall Hours · Ep. 41
0:0038 min
SpectrogramGet code
ChangelogScroll
v2.4New

Dark mode for charts

Every chart follows the theme, axis labels included.

Nov 12

v2.3New

Offline drafts

Write on the train; it syncs when you are back.

Oct 30

v2.2Faster

Search in a blink

Results now arrive as you type, even on big teams.

Oct 14

v2.1New

Shared folders

Invite anyone to a folder without a seat.

Sep 29

v2.0Big

A new editor

Rebuilt from the ground up, and half the size.

Sep 3

StackingGet code