Lightbox

Cover photo
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-lightbox

About 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

More radios

See all
How much do you agree?
AgreeGet code
Pattern
Op-artGet code
Reaction
ReactionGet code
Accent colour
RevolveGet code