∞ forever components

Feedback & States

Achievement Unlocked Pixel Trophy

Achievement Unlocked Pixel Trophy control in the 8-Bit Gaming system.

css+canvasmedium complexitymoderate motionaccessible

Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited

Live demo — the real component, running in a sandbox. One self-contained HTML file, zero dependencies. Open it on the canvas →
1

When to use it

A reward moment after a milestone: a pixel trophy card with an XP score, a banner and a rarity tag.

When not to

Frequent or low-stakes confirmations; the card is large and reads as a celebration.

Working with an AI agent

Every component ships agent-ready metadata. An example instruction for this one:

Edit the text in .bg12-award-title, .bg12-xp-score, .bg12-toast-title, .bg12-toast-sub and .bg12-badge-rarity, and the --bit-gold, --bit-red and --bit-shadow tokens. The canvas #bg12-canvas draws the rotating rays (rays = 12) and eight sparkle squares behind the trophy sprite. Keep the visibilitychange pause and the reduced-motion branch. Theme: dark tokens live in :root, the light variant in [data-theme="light"]; ?theme=light switches it.

Safe to edit

  • Award title, XP score, banner and rarity text
  • Ray count and sparkle count in render()
  • Palette (--bit-gold, --bit-red, --bit-bg, --bit-card, --bit-shadow)

Keep intact

  • Single root .bg12-root and the .bg12-caption label
  • visibilitychange pause and prefers-reduced-motion branch
  • Canvas #bg12-canvas behind the trophy sprite

Known limitations

  • Passive piece: no controls, the animation runs on its own.
  • The trophy is an emoji glyph, so its look depends on the platform emoji font.

arcade8-bitpixelretrogamingmicroswitchachievement-unlocked-pixel-trophyfeedbacktoastachievementtrophybannernotification8-bit-gamingcelebration

More Feedback & States components

  • Success CheckMint-green ring sweeps closed and a checkmark draws in with a springy pop and expanding halo; initial replay stops after first input; click or Space runs…
  • Error ShakeDark email input shakes horizontally with decaying-sine, border flushes red, X icon pops in with overshoot spring, validation message slides up.
  • Toast StackCompact notification toasts with one clear structure: status icon (check, x, exclamation, info), a short title, one muted detail line, a text action and a…
  • Hold to ConfirmPress-and-hold fills a tick-marked ring; a full hold rotates the center square 45° into a verdigris check, and an early release flashes a coral cross…
  • Empty StateA Bauhaus open vessel sits empty while 26 jade motes drift in a slow orbital cloud above it; poking scatters them and they spring back to settle.
  • Like BurstRose-and-verdigris enamel palette: a heart spring-pops with 96 dots and ring shards. First input stops the demo; later input toggles the liked state.