Skip to content
Components63 / 118

Flip Wheel

A rolodex of cards that flips one at a time. Portrait cards stand on a horizontal drum; the ones still to come lean back behind the front card, so their tops peek out as a stack of colour strips, and each step the front card tips forward over the hinge and lies down toward you while the stack moves up one. It flips on its own; a wheel, a drag or a click turns it by hand, and the drum leans after the cursor.

RolodexThree.jsCard flipAutoplayDrag & wheelGSAP
Click, drag or scroll to flipMove: the drum leans

Tweak

LIVE

Motion

Flip on its own

0.7s

Drum

7.5°

Props

6 props
  • cards{ src?; draw?; alt? }[]
    The cards: portrait images, or draw(ctx, w, h) to paint one (512 x 640).
  • autoplayboolean
    Flip on its own (pauses on hover).default true
  • intervalnumber
    Seconds each card rests at the front.default 0.7
  • spacingnumber
    Degrees between cards on the drum.default 7.5
  • onChange(index) => void
    Called when a new card reaches the front.
  • classNamestring
    Give it a height.