Pixel UI/Buttons/Paper button

Paper button

Layers of cut paper, or a pen sketch that boils.

<piix-paper-button>DOM + canvasForm-readyNew
Sign up
Look
Size

The cut look stacks three sheets of grainy card with real gaps between them: hover lifts the top sheet and the shadows open up, pressing squashes them flat. The sketch look is a hand-drawn outline redrawn a few times a second, the way a cartoon line boils, with hatching that scribbles in on hover.

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-button>Sign up</piix-paper-button>

Examples

Sketch

Read more Contact

Colours

Three sheets, top first.

Plant it Sail

API reference

AttributeWhat it doesDefault
lookcut sketchcut
colorsthree sheets, top first (cut)#ffd8a8,#ff8a5c,#5a3d8a
inkline colour (sketch)#1d1a2b
sizesm md lgmd
typebutton submit resetbutton
hrefmakes it a link–
disabledgreyed out, can't be pressed–

Events

EventWhen
clicklike any button

Accessibility