← All presets
Editorialper-word

Kinetic Center Build

Words enter from the right, pushing the line to stay centered.

pnpm

Installation

Run the following command:

pnpmdlx shadcn@latest add https://mutype.dev/r/kinetic-center-build.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

Layout-aware. Each new word changes the target x-position of the whole line; the renderer must measure word widths and animate existing words to their new positions on each insertion. Best for 3–4 word phrases. The reflow blur (0.8) on existing words helps the push read as one motion. For longer phrases use depth-parallax-words.

Inspired by Apple keynote kinetic editorial typography; sequential phrase builds..