StealThis .dev

Cookbook — Numbered step timeline w/ inline timers

A vertical, numbered cooking timeline where every instruction is a node on a connecting rail, complete with optional sage tip callouts and appetizing CSS-gradient dish photos. Durations mentioned in a step (simmer 15 min, rest 3 min) spawn an inline countdown button that ticks down in real time and toasts when it hits zero. Marking a step done dims and checks it, the rail and a progress bar fill as you cook, and a finish card greets you at the last step.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Numbered step timeline w/ inline timers

A warm, editorial recipe card rendered as a vertical timeline. Each step is a round number badge pinned to a connecting rail, paired with the instruction, an optional Tip callout, and an appetizing CSS-gradient “photo” plate built entirely from radial gradients and a single food emoji — no images or libraries. The serif Fraunces headings and cream paper surfaces give it the feel of a printed cookbook page.

The interactions do the watching for you. Any step that mentions a duration (simmer 15 min, rest 3 min) gets an inline timer button: tap to start a live countdown, tap again to pause or resume, and a toast fires the moment it reaches zero. Marking a step done adds a check to its badge, dims and strikes through the body, and stops any timer still running on it. As you complete steps, both the connecting rail and the header progress bar fill from saffron to tomato, and a celebratory finish card appears once the last step is checked.

Toolbar buttons stop every running timer or reset the whole timeline back to the start. The layout is single-column and responsive from 360px up, controls are keyboard-usable with visible focus rings, and progress and timer updates are announced via aria-live regions.

Illustrative UI only — recipes & nutrition data are fictional, not dietary advice.