Fireflies
Summer nights
Text
Type
Colour
Ground
Motion
About this effect
Fireflies sets your words out in a summer night. They sit in moonlight, cool and dim, and a few fireflies drift around and over them, each blinking in its own slow rhythm: a quick flash that fades away, then dark for a while. When one lights up near a letter, its warm glow falls on the letter, strongest close by and fading with distance, so the words are lit in patches that come and go as the fireflies wander.
Move the pointer over the words and the fireflies drift towards it, curious, and gather round it. It stays on the dark ground in both themes, because fireflies need the dark. It is drawn on a canvas from the heading's own letters, and the heading keeps your words for screen readers and search. Swarm sets how many there are.
- Formats
- React, HTML
- No dependencies
- Built with
- Canvas, over real text
- Default font Fraunces
- Plays
- Loop, In view, Hover, On load
- Reduced motion
- Respected
- Shows the finished frame
Accessibility. One real heading, read once; the fireflies and their light are drawn on a canvas hidden from screen readers. Under reduced motion the fireflies hang still, a few of them lit.
Also known as firefly text effect, glowing bugs animation, summer night text, light falloff text, magical text animation, interactive glow text.
Use it in anything you build, client work included, no credit needed. Don’t republish or resell the effect itself.