← All presets
Foundationper-word

Glyph Stamp

Words stamp in with a 3D rotateX hinge, like pressed onto the page.

pnpm

Installation

Run the following command:

pnpmdlx shadcn@latest add https://mutype.dev/r/glyph-stamp.json

Props

PropTypeDefaultDescription
specAnimationSpecAnimation spec object (imported from components/mutype/specs/<id>).
textstringThe text to animate.
as"span" | "div" | "h1"–"h4" | "p""span"The HTML element to render.
triggerKeystring | numberRe-runs the animation when the value changes.
duration_multipliernumber1Scales duration_ms and stagger_ms uniformly. >1 slower, <1 faster.
y_travel_multipliernumber1Multiplier on y_px values; useful to dampen lift on small text.
forceReducedMotionbooleanfalseForces the reduced-motion fallback even when the user has not opted in (testing).
onFinished() => voidFires once when the enter phase completes (not on cancel).
classNamestringTailwind / CSS class names. Forwarded to the host element.

Usage notes

The rotateX hinge requires perspective on the parent container (recommended: 800px). Slight overshoot in the easing (1.36 in the third control) gives the press the right tactile pop without becoming bouncy. Best on 2–6 word phrases. For headlines longer than 6 words drop stagger_ms to 50 to avoid drag.

Inspired by Letterpress printing; tactile interfaces where every commit feels physical..