Phosphor
Lights out
Text
Type
Colour
Ground
Motion
About this effect
Phosphor paints your words in glow-in-the-dark paint. While the lamp is on they look like what they are, pale chalky letters under a warm pool of light. Then the light clicks off and the paint shows what it soaked up: the letters glow, bright at first, and fade slowly in the dark, each at its own pace the way real paint does, until the lamp flickers back on like a tired tube and charges them again.
The glow never fades past readable, so the words are there all the way round. It stays on the dark ground in both themes, where a glow shows. The heading stays real text for screen readers and search. Afterglow sets how slowly the letters fade.
- Formats
- React, HTML
- No dependencies
- Built with
- CSS and a little JS
- Default font Outfit
- Plays
- Loop, In view, Hover, On load
- Reduced motion
- Respected
- Shows the finished frame
Accessibility. One real heading, read once; the lit letters and the lamp light are hidden from screen readers. Under reduced motion the letters rest glowing softly in the dark, with no switching.
Also known as glow in the dark text, luminous text effect, afterglow text, lights off animation, phosphorescent text, night mode text effect.
Use it in anything you build, client work included, no credit needed. Don’t republish or resell the effect itself.