Pencil
Text
Put the words to colour in [brackets].
Type
Colour
Ground
Motion
Colour outside the lines
About this effect
Pencil colours in the words that matter, the way you would in the margin of a notebook. Each marked word is drawn as a thin graphite outline, then filled with quick back-and-forth strokes of a coloured pencil at a slant, left to right, the grain of the paper catching the colour so little flecks of white show through, the odd stroke slipping just past the line. A second pencil goes over the first at another angle toward the end of the word, so the two colours blend into each other.
On a loop the colour holds, is rubbed out, and the word is coloured in again. The strokes are drawn on a canvas over the marked words only (their letters measured from the page, so font, size and line breaks are yours); the rest of the sentence is ordinary text, and screen readers hear the plain sentence.
Write the words in brackets: Colour [outside] the lines. Big, bold words give the pencils room; it suits education, kids, craft, sketchbooks and anything hand-made.
- 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 that reads as the plain sentence; the pencil work is drawn on a canvas hidden from screen readers. Under reduced motion the marked words are shown coloured in, with no strokes moving.
Also known as coloured pencil text, colouring in text, hand drawn highlight, crayon text effect, sketch highlight, pencil shading text.
Use it in anything you build, client work included, no credit needed. Don’t republish or resell the effect itself.