Icing

Bake sale

Text

Type

Colour

Ground

Ground

Motion

Plays

Checking your unlocks…

About this effect

Icing decorates your words the way you decorate a biscuit with royal icing. First a bead of icing is piped round the outline of every letter, a letter at a time and round the holes too, a glossy tube with a fresh blob at the nozzle. Then each letter is flooded: thinner icing spreads out from the middle of every stroke until it meets the piped edge and settles smooth, slightly domed and shining while it is wet, with a sheen that slides across it. While it is still wet, sprinkles land on it and stick.

Your pointer shakes on more sprinkles wherever it goes: seen from above, each falls toward the biscuit, shrinking into place as it lands, and only the ones that land on icing stay. On a loop the biscuit is finished, admired for a few seconds, and decorated again. The outline is traced from the heading's own letters, so the piping follows every curve of your font. 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.

Sprinkles sets how many land in the shower. Heavy, rounded letters flood best; it suits bakeries, food, parties, birthdays, kids and anything sweet.

Formats
React, HTML
No dependencies
Built with
Canvas, over real text
Default font Bricolage Grotesque
Plays
Loop, In view, Hover, On load
Reduced motion
Respected
Shows the finished frame

Accessibility. One real heading, read once; the icing is drawn on a canvas hidden from screen readers. Under reduced motion the biscuit is decorated from the start and nothing is piped or flooded; the pointer still shakes on sprinkles, which land at once.

Also known as icing text effect, royal icing lettering, cookie decorating text, piped frosting text, sprinkles text, bakery text animation.

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

More path and shape