Component

Fan carousel

Six cards laid on an arc: each one spreads out, drops, tilts and shrinks in proportion to its distance from the chosen card. All that arithmetic is done in CSS from one single number — the index of the checked radio button — so the fan spreads out before the script even arrives, and the arrow keys step through it natively.

Click a card to bring it to the front, or drag it sideways. HTML, CSS and JavaScript: no framework, no build step, not a single external request.

The original design

Every measurement is taken from the published reference and then expressed as a multiple of --arc-font-size, so that one single variable rescales the whole thing — the arc, the shadows and the tilt included.

The compact variant

The original design is made for a page that shows nothing else. The fan-carousel--compact variant changes one thing only — --arc-font-size goes from 16 to 10 px — and the card, the arc, the radius, the shadows and the five text sizes all rescale together.

What you need to know