Dorset · June, late afternoon
Infrared
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardInfrared(el) on the mounted element instead.
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/card-infraredAbout 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 allWhat do you see?
Pencil, then ink · 14 Nov
Salt & Iron
Wren Halloway
Hardback
312 pages
Background: Office