Tie-dye
Good vibes
Text
Type
Colour
Ground
Motion
About this effect
Tie-dye makes your words from cotton twisted into a spiral and dyed in wedges, the way a spiral tie-dye shirt is made. The dye soaks out from the middle with a ragged wet edge, each wedge winding round as it goes, the colours bleeding into each other where they meet and coming out a touch deeper there, with white crinkles where the folds kept the dye out and a pale knot at the very middle. On a loop the spiral turns slowly. Move the pointer over the letters and the middle of the spiral follows it, as if the cloth were twisted round your finger, and drifts home when you leave.
Each pixel works out where it sits on the spiral (its angle, wound round by its distance from the middle) and which wedge that puts it in, with a little noise so the folds look hand-tied; dyes are mixed in linear light. A faint weave and a soft shadow make it cloth. 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.
Twist sets how tightly the spiral winds, Folds how many times the dyes go round. Big, heavy letters show the most of the spiral; it suits festivals, summer, music, kids' brands and anything joyful.
- Formats
- React, HTML
- No dependencies
- Built with
- Canvas, over real text
- Default font Bricolage Grotesque
- Plays
- Loop, In view, Hover
- Reduced motion
- Respected
- Shows the finished frame
Accessibility. One real heading, read once; the dye is drawn on a canvas hidden from screen readers. Under reduced motion the dye is in from the start and the spiral never turns on its own; its middle still follows the pointer.
Also known as tie dye text, tie-dye text effect, spiral dye text, psychedelic text, hippie text, dyed fabric text.
Use it in anything you build, client work included, no credit needed. Don’t republish or resell the effect itself.