Pixel UI/Text/Paper text

Paper text

A headline a pen draws, then fills with cut paper.

<piix-paper-text>DOM + canvasNew
Hand made
Look

When it scrolls into view a pen traces every letter, then the word fills in as stacked sheets of coloured paper, each a step behind the last, and a scribble underlines it. The pen line keeps a gentle boil. The sketch look keeps only the pen.

Installation

<!-- once, anywhere on the page: every component -->
<script src="https://cdn.jsdelivr.net/npm/piixpal@0.6/piixpal.min.js"></script>

Usage

<piix-paper-text underline>Hand made</piix-paper-text>

Examples

Sketch

or just sketched

Colours

Top sheet first.

Fresh

API reference

AttributeWhat it doesDefault
lookcut sketchcut
colorstop sheet, then the sheets below#ffd23f,#ff8a5c,#e2477a,#5a3d8a
inkpen colour#1d1a2b
sizefont size in px96
underlinedraw a scribbled underline–
fonta CSS font family–

Accessibility