StealThis .dev

Storybook — Star-reward Quiz

A gentle children's quiz built in the storybook style, with one picture question at a time and four big tappable answer cards drawn entirely as inline SVG. Tapping the right card sends a star flying into a five-slot meter, pops a confetti burst, and cheers the reader on; a wrong tap simply wobbles and offers a kind try-again, never a harsh fail. A progress bar tracks all five questions and a final score screen shows the earned stars with a play-again button, plus easy-read and sound toggles for friendly motion and accessibility.

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

Code

Star-reward Quiz

A warm, low-pressure quiz for early readers, set in a soft storybook sky. Each round shows one question from a tiny fictional tale and four oversized answer cards — every picture is drawn as inline SVG (a moon, a frog, an apple, a little tug boat), so there are no external images. A cheerful frog mascot, a five-slot star meter, and a chunky progress bar sit above the question so a child always knows where they are.

Tapping the correct card launches a star that flies from the answer up into the meter, pops into place with a spring, and triggers a quick confetti burst while the mascot cheers and a soft chime plays. A wrong tap is never punished: the card gives a gentle wobble, the mascot looks surprised for a beat, and an encouraging “try again” line invites another go — no streaks are lost and the question stays open. After five questions a result screen tallies the earned stars, swaps in a kind headline (from “Nice exploring” up to “Super Star Explorer”), and offers a big play-again button that resets everything for a new adventure.

Two pill toggles round out the demo: an easy-read switch that swaps in a more legible font with roomier letter and line spacing, and a sound switch that mutes the tiny WebAudio chimes. The layout uses large 48px-plus touch targets, visible focus rings, live-region feedback for screen readers, and collapses from a two-by-two grid to a single stacked column down to 360px. All motion respects prefers-reduced-motion.

Illustrative kids’ UI only — fictional stories, characters, and audio.