Backlit
AFTER DARK
Text
Type
Colour
Ground
Motion
About this effect
Backlit puts the letters in front of the light rather than in it. They are a shade darker than the background, and two coloured lights circle behind them in opposite places, so one edge of every letter glows in one colour and the far edge in the other, and the rims travel round as the lights move. A soft wash of the same colours drifts behind the word.
The rims are two drop shadows offset towards the lights, the offsets taken from the cosine and sine of one animated angle, and the wash is two radial gradients that move with it. Nothing but that angle changes. Like neon, it needs a dark room, so it stays on the dark ground on light pages too.
Use it for a night mode hero, an event or a launch countdown. Heavy, wide letters catch the most light.
- Formats
- React, HTML
- No dependencies
- Built with
- CSS and a little JS
- Default font Archivo
- 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 lights stay still, up and to the left.
Also known as backlit text, rim light text, eclipse text effect, halo text, glow behind text, light leak text.
Use it in anything you build, client work included, no credit needed. Don’t republish or resell the effect itself.