Lightbox
Markup where the component goes, CSS in your stylesheet. No JavaScript.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/radio-lightboxAbout this component
Three 35mm slides on a lightbox: coast, dune and pine. Unlit, the transparencies sit dark and muddy; the slide you pick straightens up, the tube under it flickers on and its colours glow through the film in a warm pool of light.
Triggers
- Click
- State change
- Glow
- Keyframe
Techniques
- Filter
- Keyframes
- Radial gradient
- mix-blend-mode
- SVG
- CSS variables
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
Native radios in a fieldset with a visually hidden legend ("Cover photo"), each in a <label> with its visible name (Coast, Dune, Pine); the mounts and scenes are aria-hidden. :focus-visible outlines the mount.
Reduced motion
The flicker and slide are switched off and the picked slide is shown lit at once.
Use it in anything you build, commercial and client work included. Licence