Sparkle text

Also called sparkles text, twinkle text, or glitter text effect

Small star-shaped sparkles that pop in, twinkle, and fade at random spots around a word, so it looks freshly polished or newly unlocked.

What is Sparkle text?

Sparkle text scatters tiny star shapes around a word. Each sparkle appears at a random spot near the text, grows from nothing, twists a little as it twinkles, and shrinks away about a second later while new ones keep arriving. The word stays plain text; the sparkles live in a decorative layer around it.

It fits celebratory and premium moments: a "Your app is live" confirmation, a Pro badge, a new feature name, or an achievement. Keep it to one word or short phrase per screen, with three to six sparkles visible at once, so it reads as a quick glint.

Place sparkles in percentages of the word box and size them in em, so they scale with the text. Mark the sparkle layer aria-hidden and stop spawning while the word is off-screen. Random positions picked on the server will not match the browser, so pick them after hydration or from a seeded generator. When someone prefers reduced motion, show a few still sparkles.

Often confused with

Confetti
Confetti bursts many pieces across the screen once, for a moment of success. Sparkle text keeps a few small glints twinkling around one word.
All terms

Confetti

A burst of small colored pieces that fly out and flutter down to celebrate a moment, such as finishing signup or publishing a site.

Shimmer text

Text with a band of light sweeping across it on a loop, often used for "Thinking…" and other status labels while an app is working.

Glow effect

A soft halo of colored light around a button, card, or text, made with colored shadows or a blurred layer behind the element.

Particle background

A backdrop of small dots that drift slowly, often linked by faint lines when they pass close to each other, behind a hero or sign-in screen.

Build it with Layerwise

Describe your app, watch it run in a live preview, and publish it with a database, storage, and sign-in built in.