ZeroGravity UI

Typographystable

Palimpsest

Layered draft text

A word that comes apart into the drafts written underneath it.

Palimpsest

Customize

Layersthe word comes apart into the drafts underneath it
text
4layers
26 pxspread
4 °rotation
trigger
6seed

Usage

TSX
import { Palimpsest } from "zerogravity/palimpsest"

<Palimpsest
    text="Palimpsest"
/>

Generated from the controls above. Only props that differ from their defaults are shown.

Props

8 documented props on Palimpsest
PropertyTypeDefaultDescription
textstring"Palimpsest"Text.
layersnumber4Layers. Range 1 to 8.
spreadnumber26Spread. Range 0 to 90 px.
rotationnumber4Rotation. Range 0 to 20 °.
trigger"pointer" | "always""pointer"Trigger.
seednumber6Seed. Range 1 to 40.
as"span" | "h1" | "h2" | "h3" | "p""span"The tag the real text is rendered as.
colorsstring[]PALIMPSEST_COLORSThe tints the ghost layers are drawn in.

Dependencies

0 external runtime dependencies

Ships with nothing but React.