Mask Wipe
Entrance & Kinetic · Animated · pure CSS
A soft-edged gradient mask sweeps across the word, wiping it into view and back out on a loop. A smooth reveal entrance.
How it works
Mask Wipe is an animated entrance & kinetic text effect rendered entirely in CSS. It works on a single element — just add the .text-effect class, with no extra HTML.
Controls
Mask Wipe exposes 3 dedicated controls — Hue, Angle and Speed — on top of the shared type controls (font, weight, letter-spacing and case). Open it in the generator to tune every value live, then copy the updated CSS.
CSS
/* Mask Wipe — generated with TEXT-FX
* HTML: just put the class on any element.
* Font: 'Syne', sans-serif (load from Google Fonts).
*/
.text-effect {
font-family: 'Syne', sans-serif;
font-weight: 700;
letter-spacing: -1px;
text-transform: none;
}
.text-effect {
color: hsl(52 80% 70%);
-webkit-mask-image: linear-gradient(106deg, #000 33%, transparent 66%);
mask-image: linear-gradient(106deg, #000 33%, transparent 66%);
-webkit-mask-size: 320% 100%;
mask-size: 320% 100%;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
animation: text-effect-wipe 5.0s ease-in-out infinite;
}
@keyframes text-effect-wipe {
0% { -webkit-mask-position: 130% 0; mask-position: 130% 0; }
45%, 55% { -webkit-mask-position: -30% 0; mask-position: -30% 0; }
100% { -webkit-mask-position: 130% 0; mask-position: 130% 0; }
}
Pure CSS — just add the .text-effect class to any element.
- Category
- Entrance & Kinetic
- Type
- Animated
- Browser support
- Animated mask-position on an oversized linear-gradient mask
- Capabilities
- pure