VanillaReactLight & dark233 views
A data-driven 3D flip gallery of cosmic photography. Each card flips from a captioned photograph to an observation datasheet — instrument, exposure, coordinates, distance. Flips by click or keyboard, arrow-key roving, a skeleton loading seam, and a reduced-motion crossfade.
Get the code for free
Create a free account to copy or download the full source.
Gallery component
A data-driven 3D flip gallery of cosmic photography. Each card flips from a captioned photograph to an observation datasheet — instrument, exposure, coordinates, distance. Flips by click or keyboard, arrow-key roving, a skeleton loading seam, and a reduced-motion crossfade.
perspective, transform-style: preserve-3d, and crisp backface-visibility: hidden on both faces<button>, so flips are triggerable by full-card click and by keyboard (Enter and Space) — never hover-onlyaria-pressed on each card reflects whether the observation datasheet is currently shown, and each flip is announced through a polite live regionM31 · NGC 224js/data.js and rendered into an empty grid at runtimefetchGallery() in js/api.js returns a defensive structuredClone after a short latency, with a shimmering skeleton shown while it resolvesprefers-reduced-motion: reduce — the 3D flip collapses to a gentle opacity crossfade with both faces reachable<main class="flip"> carries an aria-label naming the gallery<button> so Enter and Space toggle the flip nativelyaria-pressed reflects whether the datasheet is currently shownrole="status" region announces which face is visible after a fliparia-label naming the subject, designation, and actionaria-busy while the async seam resolvesalt attributeOpen Flip Gallery in Atheros AI Builder, pick a design system and ask the AI assistant to change the layout, copy or behaviour — the gallery is regenerated against your tokens. Take the HTML, CSS, JS and React source with you, or pull it into your repo from Claude Code, Cursor or Codex over MCP.
Starting at $9.9 per month, billed annually
Don't miss a beat with our newsletter!
BUILDER
ABOUT US
© 2026 Atheros Intelligence Ltd.
:focus-visible outline offset from the photoprefers-reduced-motion: reduce swaps the 3D flip for an opacity crossfade