Denim
Worn in
Text
Type
Colour
Ground
Motion
About this effect
Denim cuts your words from indigo twill: blue warp yarn over white weft, three over one, so the fine diagonal lines of denim run through every letter, with the slubs of ring-spun yarn streaking it lighter and darker. The edge is turned under, darker in the fold with a lit ridge just inside it, and a double row of contrast topstitching runs round inside that. Rub the pointer over the letters and the indigo wears pale along the stroke, in stretched, soft fades like the whiskers on a worn pair of jeans, the white core of the yarn coming through; over a few seconds the colour comes back. On a loop a pad wanders over the letters and wears its own fades.
The cloth is woven pixel by pixel twice, once fresh and once worn, and the wear is a soft mask between them, so a fade is the same twill, only paler. The topstitching is laid dash by dash along two lines a set distance inside the edge. 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.
Wear sets how wide and how strong each rub is. Heavy letters show the most cloth; it suits fashion, workwear, vintage shops and anything well worn.
- Formats
- React, HTML
- No dependencies
- Built with
- Canvas, over real text
- Default font Archivo
- Plays
- Loop, Hover
- Reduced motion
- Respected
- Shows the finished frame
Accessibility. One real heading, read once; the cloth is drawn on a canvas hidden from screen readers. Under reduced motion nothing wears on its own; rubbing with the pointer still fades it.
Also known as denim text, jeans text effect, stitched denim letters, indigo text, worn fabric text, topstitch text.
Use it in anything you build, client work included, no credit needed. Don’t republish or resell the effect itself.