Holographic Foil
Metallic & Holographic · Animated · pure CSS
Iridescent foil that shifts hue continuously via an animated @property angle on a conic gradient. That holographic-sticker shimmer, in pure CSS.
CSS
/* Holographic Foil — generated with TEXT-FX
* HTML: just put the class on any element.
* Font: 'Recursive', sans-serif (load from Google Fonts).
*/
@property --text-effect-angle {
syntax: "<angle>";
inherits: false;
initial-value: 0deg;
}
.text-effect {
font-family: 'Recursive', sans-serif;
font-weight: 700;
letter-spacing: 4px;
text-transform: none;
}
.text-effect {
background: conic-gradient(from var(--text-effect-angle),
hsl(300 78% 70%) 0deg,
hsl(255 78% 64%) 60deg,
hsl(190 78% 70%) 120deg,
hsl(140 78% 64%) 180deg,
hsl(55 78% 70%) 240deg,
hsl(15 78% 64%) 300deg,
hsl(300 78% 70%) 360deg);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
filter: drop-shadow(0 0 3px hsl(280 78% 65% / 0.45)) drop-shadow(0 0 8px hsl(280 78% 65% / 0.45));
animation: text-effect-spin 6.3s linear infinite;
}
@keyframes text-effect-spin {
to { --text-effect-angle: 360deg; }
}
Pure CSS — just add the .text-effect class to any element.
- Category
- Metallic & Holographic
- Type
- Animated
- Browser support
- @property <angle> + background-clip:text (Chrome 85+, Safari 16.4+, Firefox 128+)
- Capabilities
- property