Disco

Saturday night

Text

Type

Colour

Ground

Ground

Motion

Plays

Checking your unlocks…

About this effect

Disco tiles your words in small square mirrors, each tilted a little differently and all set on the curve of a ball, with dark grout between them and a bevel on every tile. Three coloured spotlights circle the room: a tile flashes the colour of whichever light it catches at the right angle, the brightest with a star glint, and flecks of the same lights sweep across the walls behind the words as the ball turns. The pointer is one more spotlight, a white one: move it over the letters and the tiles facing it light up.

Each frame works out one colour per tile on a tiny grid, scales it up crisp and lays the grout and bevels over it, so even thousands of tiles stay light. 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. It is made for a dark ground and stays dark in both themes.

Tiles sets how big the mirrors are, Flecks how many spots of light the ball throws on the walls. Heavy letters hold the most tiles; it suits parties, music, nightlife, a launch night or anything that should glitter.

Formats
React, HTML
No dependencies
Built with
Canvas, over real text
Default font Syne
Plays
Loop, Hover
Reduced motion
Respected
Shows the finished frame

Accessibility. One real heading, read once; the tiles are drawn on a canvas hidden from screen readers. Under reduced motion the ball does not turn: the tiles only catch the pointer's light.

Also known as disco ball text, mirror ball text effect, mosaic mirror text, party text animation, glitter text, sparkle tiles.

Use it in anything you build, client work included, no credit needed. Don’t republish or resell the effect itself.

More light and shine