Pixel UI/Cards/Paper card

Paper card

A card topped with a cut-paper diorama, or framed in pen.

<piix-paper-card>DOM + canvasNew

Weekend retreat

Three days in the hills.

Scene
Look

The cut look puts a little paper diorama on top (hills, sea or city), each layer casting a shadow on the one behind and sliding at its own depth as the pointer moves. The sketch look is a boiling pen frame with a cross-hatched shadow and a strip of tape.

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-card style="width:300px">
  <h3>Weekend retreat</h3>
  <p>Three days in the hills.</p>
</piix-paper-card>

Examples

Sea, your colours

Sky, sun, then three layers far to near.

Coastline

Paper waves, layered.

Sketch

Notes

A pen-drawn frame that never sits still.

API reference

AttributeWhat it doesDefault
lookcut sketchcut
scenehills sea city (cut)hills
colorssky, sun, then three layers far to neara warm dusk
inkline colour (sketch)#1d1a2b

Accessibility