Foil

Limited edition

Text

Type

Colour

Ground

Ground

Motion

Plays

Checking your unlocks…

About this effect

Foil is the shine of a holographic sticker or a collectible card. The letters are filled with soft rainbow foil and sit on a card that tilts slowly from side to side; as it turns, the colours slide through the letters and a bright band of light sweeps across them, so it reads as a real surface catching the light.

It is one heading: two gradients clipped to the text (the foil and the sheen), a hairline edge and a pressed shadow, inside a wrapper that rotates in 3D. Only transform and background position move, so it stays smooth.

Use it for a launch, a limited edition or a badge. Pale, close colours read as foil; strong ones read as a rainbow. Foil needs a dark card to catch the light, so it stays on the dark ground on light pages too.

Formats
React, HTML
No dependencies
Built with
CSS and a little JS
Default font Syne
Plays
Loop, In view, On load, Hover
Reduced motion
Respected
Shows the finished frame

Accessibility. A plain heading: screen readers read the text as it is. Under reduced motion the card sits flat with the foil at rest.

Also known as holographic text, iridescent text, foil text effect, rainbow shimmer text, hologram text css, trading card shine.

Use it in anything you build, client work included, no credit needed. Don’t republish or resell the effect itself.

More light and shine