Knit

Stay cosy

Text

Type

Colour

Ground

Ground

Motion

Plays

Checking your unlocks…

About this effect

Knit works your words in stocking stitch, like the lettering on a jumper. Every stitch is a V of two plump legs of twisted yarn, shaded where they tuck under the row above, with a band of the second yarn every few rows and a dotted row where the colours change. The letters knit up from the bottom, row by row and back and forth the way real knitting goes; on a loop they hold, then unravel from the top on a curl of loose yarn and knit again. Move the pointer over them and it tugs the fabric toward it: the stitches stretch and spring back when you let go.

Each stitch is drawn once as a small picture (in a few slightly different tones, the way hand knitting varies) and placed wherever its middle falls on a letter, so the letters keep the stepped edge of real intarsia. 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.

Stitch sets how chunky the yarn is (bigger stitches, fewer of them), Stripes how many rows of the second yarn each band has (none for a plain colour). Heavy, blocky letters knit best; it suits winter campaigns, gifts, craft shops and anything cosy.

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

Accessibility. One real heading, read once; the knitting is drawn on a canvas hidden from screen readers. Under reduced motion the letters are knitted from the start and never unravel: the fabric only stretches for the pointer.

Also known as knitted text, knit text effect, yarn text, sweater text, wool text, cosy text animation.

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

More material and depth