Scrolling tablist with note panel

Round photo discs strung on a line as tabs, with a leader line that slides under the chosen one and writes a sentence below it.

ControlsFreeFrom Threshold, UK experienceAbout 16k tokens saved
The whole page

Links in the preview stay on the block.

Open on its own

The prompt

One prompt, written to stand on its own: goal, structure, type, colour, spacing, behaviour and the words in square brackets to replace. Paste it into any tool that writes HTML. The Code tab has this block as one file.

797 words
Download .zip
# Scrolling tablist with note panel

One controls component, not a whole page: build it to drop into a page that already exists. Works in Claude, v0, Lovable, Bolt, Cursor or any tool that writes HTML.

## Goal
A row of round photo buttons strung along a line, each a step in a chain; choosing one writes a sentence below it. For a status or progress section.

## Structure
1. A horizontal scroller holding a track: a 2px line behind the row, inset 10 percent each side.
2. An ol of five items, each an equal share of the row.
3. Each a button holding a halo ring and circular photo, a role line, a place line, a status row with a tick or dot and one word.
4. A swipe hint, phones only.
5. Note area: a 1px leader line and the note, with a label line and the sentence.

## Type
Role line Libre Franklin 600, 15px/1.3; place line Newsreader 400, 22px/1.2 at optical size 24; status, note label and hint 500 13px; note text Newsreader 400, 25px/1.36, old style figures, 21px under 760px. Body 400 17px/1.55.

## Colour
Page #DCE5DA, text #10291F, secondary #4A5A50. Chain line and done status #0F5C4D, its tick that circle with a #FFFFFF check; waiting keeps #10291F text beside a #B7791F dot. Disc placeholder #EEF2EC; halo transparent until selected, then a 1.5px #10291F ring; the note under a 1px #10291F rule. AA: #4A5A50 on #DCE5DA.

## Spacing and lines
Container 1320px, side padding clamp(20px,4vw,56px). Discs clamp(104px,11vw,164px), halo 9px outside, the 2px line crossing their middle. Track padding 18px top, 10px bottom. Role line 26px below the disc, place line 3px under, status 12px under that, its 16px tick or 9px dot 8px from the word. Note area 30px lower; leader 1px by 48px; note min(100%, 31rem), 48px down, 18px under its rule.

## Behaviour
Script needed. Clicking a disc, or focusing it, selects it: aria-selected and the roving tabindex move, the note takes aria-labelledby for that tab, its text drops 6px and fades to 0 over .16s, swaps after 170ms, returns over .32s, on cubic-bezier(.22,1,.36,1). Leader and note slide under the chosen disc over .7s on the same curve, the leader to its centre, the note to that centre minus half its width, clamped inside. Hover scales a photo to 1.06 over .9s. Keys: left and right move and wrap, Home and End the ends, selection following focus. Below 760px the row scrolls sideways with centre snapping, and 140ms after it settles the script selects the disc nearest the middle. Reposition on resize.

## Responsive
At 759px: discs 116px in fixed 170px columns; the track padded each end by calc(50vw minus 85px) so the first and last reach the centre; the line inset by that plus half an item; the leader fixed at 50 percent, 40px tall; the note full width at 21px; the hint shown.

## Accessibility
The ol is role tablist, aria-label saying how many links; each button role tab with aria-controls, aria-selected, a roving tabindex, its label line and sentence in data attributes; the note role tabpanel, aria-live polite. Photos decorative with an empty alt; the status is text beside its mark, never colour alone; the hint aria-hidden. Drop the button's outline and ring the halo: 2px solid #10291F, offset 6px. Reduced motion: no fade.

## Built values (from code.html)
- Fonts: Libre Franklin 400, 500, 600 (Google Fonts); Newsreader 300 to 600, optical size 6 to 72 (Google Fonts).
- Colour variables: --bg #DCE5DA, --ink #10291F, --muted #4A5A50, --surface #EEF2EC, --accent #0F5C4D, --wait #B7791F, --hair rgba(16,41,31,.22).
- Font variables: --serif "Newsreader",Georgia,"Times New Roman",serif; --sans "Libre Franklin",Arial,sans-serif.
- Size variables: --hero-pos 50% 46%, --hero-pos-phone 50% 50%, --keys-pos 50% 30%, --keys-pos-phone 36% 50%, --gut clamp(20px,4vw,56px), --sp clamp(104px,13vw,196px), --disc clamp(104px,11vw,164px).
- Media queries: max-width 1023px, max-width 759px.
- Media: assets/row.webp (2000x1333), assets/doors.webp (1500x2000).
- Script: none, CSS only.

## Content to replace
- [Tablist label]: how many links
- [Link titles]: a role and place line
- [Status]: one word, which mark
- [Notes]: a sentence each
- [Disc photos]: a square crop each
- [Swipe hint]: three or four words

## Rules
Plain, specific copy that reads as a live product; never the word sample. No shadows, glow, glass, blur, gradient text, emoji or italics. Motion moves transform and opacity, with colour, border, height and stroke transitions on state changes, and holds its end state under prefers-reduced-motion. Text passes WCAG AA.

## Output
Return the block in one piece: the markup, one style block with the web fonts imported on its first line, and a small script only if the behaviour needs one. No page wrapper, no framework, no build step. Prefix every class with `blk-` and put the colours and sizes in CSS variables at the top.

Media to supply

The photos and video on the live page are licensed for this showcase, so the code points at an assets folder instead. Drop your own files in with these names, or change the paths: row.webp, doors.webp, .

More like this

Controls

Every controls block

Same page

More from Threshold

See the page