Infrared

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-infrared

About this component

A photo card that switches film: hover and a scan line sweeps across the picture, and behind it the scene turns infrared, the trees glowing white like snow, the sky going black and the clouds blazing, while the label changes from Visible to IR 720 nm.

Dependencies
None
Difficulty
Intermediate
Reduced motion
Respected
Theme
Light and dark
Follows page color-scheme

Triggers4

  • Hover
  • State change
  • Glow
  • Card

Techniques4

  • SVG
  • clip-path
  • @property
  • Filter

Accessibility

Keyboard and screen readers

An article labelled with the photo title; it takes focus, and focus or a tap switches the film as hover does. Both pictures are aria-hidden; the film label is live text.

Reduced motion

The picture swaps without the sweep.

Use it in anything you build, commercial and client work included. Licence

More cards

See all

What do you see?

InkblotGet code
Pear, study 4Sketchbook

Pencil, then ink · 14 Nov

InkingGet code

Salt & Iron

Wren Halloway

Hardback
312 pages

JacketGet code
KeyedGet code