Original Soundtrack
Official Film Soundtrack
In cinemas · December 2027
Three CSS layers clipped to text build holographic foil: iridescent rainbow gradient, metal grain, looping specular sweep. Hover speeds up the shimmer.
Updated
This effect is free — the Cards category contains 43 effects total, including 6 free. Effect.Labs has 846 vanilla effects. Explore the category →
Original Soundtrack
Official Film Soundtrack
In cinemas · December 2027
Noval · Autumn Collection 2027
12 pieces · Handcrafted in France
The effect stacks three background-image layers on .fsh-text, all anchored to glyph shapes via background-clip: text and -webkit-text-fill-color: transparent. This replaces the text color with a background rendered inside the letter outlines — no canvas, no SVG.
The third layer (normal blend) is the iridescent gradient at 135° — gold → pink → silver → cyan → purple → silver → gold — spanning 300% width. The second layer (overlay blend) is a repeating-linear-gradient at 104° of metallic micro-hatching (white at 7% and gold at 4%, every 1–4 px) simulating metallized film grain. The first layer (screen blend) is the specular sweep: a translucent white bevel at 108° that travels across the text to produce the hot-stamp glint.
The fsh-pan animation translates background-position in an infinite linear loop across the iridescent gradient and the sweep, creating the illusion of light moving across a foil surface. Duration is controlled by the CSS variable --fsh-speed (default 3.2s), overridden to 0.7s on hover of .fsh-foil.
The pill variant adds a foil border via a linear-gradient background on .fsh-pill (2 px padding, border-radius: 20px), animated by fsh-pan-border. The inner .fsh-inner carries a dark background that exposes only the animated border.
@media (prefers-reduced-motion: reduce) { .fsh-text { animation: none; } } for motion-sensitive audiences.<span>): screen readers parse the content without accessing the CSS background.-webkit-text-fill-color: transparent cancels the browser's fallback text color. If background-clip: text is unsupported, text becomes invisible. Add color: gold (or any readable color) on .fsh-text as an explicit fallback.#000), the gold and white iridescent tones locally exceed 4.5:1, but WCAG measurement of animated multi-color text is complex. Reserve for large headings (≥ 1.5rem), never body copy.Requires background-clip: text and background-blend-mode — supported in all modern browsers since 2016–2018. Zero JS, zero dependencies.
Without background-clip: text, the gradient renders as a background behind the text (opaque colored text). Define color on .fsh-text to keep the text readable in that case.
Copy it all in one click, or block by block (HTML and CSS). No JavaScript, no dependencies.
<div class="fsh-demo">
<span class="fsh-foil">
<span class="fsh-text fsh-big">FOIL</span>
</span>
<span class="fsh-pill">
<span class="fsh-inner">
<span class="fsh-foil">
<span class="fsh-text">✦ PRO</span>
</span>
</span>
</span>
</div>
.fsh-demo {
display: flex;
flex-direction: column;
align-items: center;
gap: 18px;
}
.fsh-foil {
display: inline-block;
}
.fsh-text {
background-image: linear-gradient(108deg, transparent 30%, rgba(255, 255, 255, 0.5) 47%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.5) 53%, transparent 70%), repeating-linear-gradient(104deg, rgba(255, 255, 255, 0.07) 0px, rgba(255, 255, 255, 0.07) 1px, transparent 1px, transparent 3px, rgba(200, 175, 90, 0.04) 3px, rgba(200, 175, 90, 0.04) 4px, transparent 4px, transparent 6px), linear-gradient(135deg, rgb(255, 215, 0) 0%, rgb(255, 192, 203) 18%, rgb(232, 234, 240) 36%, rgb(0, 229, 255) 54%, rgb(199, 125, 255) 72%, rgb(232, 234, 240) 84%, rgb(255, 215, 0) 100%);
background-size: 350% 100%, auto, 300% 100%;
background-position: -120% 0px, 0px 0px, 0% 50%;
background-blend-mode: screen, overlay, normal;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
display: inline-block;
font-weight: 900;
animation: fsh-pan var(--fsh-speed, 3.2s) linear infinite;
}
.fsh-big {
font-size: 3.2rem;
letter-spacing: 0.04em;
}
.fsh-foil:hover .fsh-text {
--fsh-speed: .7s;
}
.fsh-pill {
display: inline-block;
padding: 2px;
border-radius: 20px;
background: linear-gradient(135deg, rgb(255, 215, 0), rgb(255, 192, 203) 25%, rgb(0, 229, 255) 55%, rgb(199, 125, 255) 80%, rgb(255, 215, 0)) 0% 0% / 300% 100%;
animation: 3.2s linear 0s infinite normal none running fsh-pan-border;
}
@keyframes fsh-pan {
0% {
background-position: -120% 0px, 0px 0px, 0% 50%;
}
40% {
background-position: -120% 0px, 0px 0px, 120% 50%;
}
65% {
background-position: 270% 0px, 0px 0px, 195% 50%;
}
100% {
background-position: 270% 0px, 0px 0px, 300% 50%;
}
}
@keyframes fsh-pan-border {
100% {
background-position: 300% 50%;
}
}
.fsh-inner {
display: inline-block;
background: rgb(16, 16, 24);
border-radius: 18px;
padding: 6px 14px;
}
.fsh-pill .fsh-text {
font-size: 0.85rem;
letter-spacing: 0.1em;
}
Pure CSS — no JavaScript needed.
Options passed to the API or data-* attributes:
| Option / property | Default | Effect |
|---|---|---|
| --fsh-speed | 3.2s | CSS variable on .fsh-foil: duration of one full shimmer cycle. 5s = slow luxury, 1.5s = fast tech. |
| --fsh-speed (hover) | 0.7s | Accelerated speed on hover, defined in .fsh-foil:hover .fsh-text { --fsh-speed: .7s }. Adjust to control the hover intensity. |
| iridescent gradient (3rd layer) | gold → pink → silver → cyan → purple | Third background-image layer on .fsh-text. Replace color stops for a monochrome silver, brand, or full-spectrum rainbow palette. |
| font-size on .fsh-big | 3.2rem | Large text size. The foil is only fully visible from 1.5 rem; prefer 3 rem or more for headings. |
| background-size (1st value, sweep) | 350% | Width of the specular sweep. Increase (e.g. 500%) for a softer sweep; decrease (200%) for a more concentrated glint. |
| .fsh-inner background | rgb(16,16,24) | Inner background of the pill. Match your page background so only the foil border is visible. |
| border-radius on .fsh-pill | 20px | Pill corner radius. 20px = fully rounded; 6px = near-rectangular badge. |
By default, the shimmer loops on load via animation: fsh-pan var(--fsh-speed, 3.2s) linear infinite on .fsh-text. To switch to hover-only: remove the animation property from .fsh-text and move it to .fsh-foil:hover .fsh-text { animation: fsh-pan 0.7s linear infinite; }. The foil will only animate on interaction — useful when a permanent shimmer is unwanted.
Yes — but grain and iridescent are only clearly legible on wide glyphs. Prefer bold (700–900) or condensed serif fonts. Thin typefaces show only a fine iridescent line. Optimal results at 3 rem and font-weight: 900.
Yes — Foil Shimmer is 100% CSS. No JS is required for the shimmer or the animated foil border on the pill variant. It integrates directly into a static template, a CMS, or an HTML email that supports CSS animations.