Infinity mirror
Endless
Text
Type
Colour
Ground
Motion
About this effect
Infinity mirror builds every letter as the box of an infinity mirror: a mirror at the back, half-silvered glass at the front, and a strip of LEDs round the inside of the letter's edge. The light bounces between the two, so the strip is reflected again and again, each copy a little smaller, fainter and deeper in colour, until the letter seems to open onto a tunnel going down forever. The glass is dark, with a pale reflection across one corner and a thin frame caught by the light, and the LEDs spill a soft glow onto the ground round the letters.
The tunnels lean with your pointer, as if you were looking in from where it is: move it left and every tunnel bends away to the right, the deep copies sliding further than the near ones, which is what makes the depth feel real. A spark of white light chases round each strip. On a loop your eye drifts slowly round by itself. Each letter is drawn from its own distance field, so the strip follows every curve, and only the copies are drawn again each frame. It is drawn on a canvas from the heading's own letters (font, size and line breaks are the page's), and the heading keeps your words for screen readers and search.
Depth sets how many reflections there are and how far they go. Wide, open letters show the deepest tunnels; it suits nightlife, music, tech, immersive products and anything about going further. It stays on the dark ground in both themes, like the other light effects.
- Formats
- React, HTML
- No dependencies
- Built with
- Canvas, over real text
- Default font Syne
- Plays
- Loop, In view, Hover, On load
- Reduced motion
- Respected
- Shows the finished frame
Accessibility. One real heading, read once; the mirrors are drawn on a canvas hidden from screen readers. Under reduced motion the tunnels look straight in and the sparks hold still; the tunnels still lean with the pointer, without easing.
Also known as infinity mirror text, led tunnel text effect, endless reflection text, mirror tunnel lettering, parallax neon text, infinite depth text.
Use it in anything you build, client work included, no credit needed. Don’t republish or resell the effect itself.