ZeroGravity UI

Typographystable

Ascender

Scroll text reveal

Words rise one after another out of their own masks as a line scrolls into view.

Every word arrives on its own beat

Customize

Linesplit into words on ordinary spaces
text
trigger
replay
Timingper word, then between words
900 msduration
60 msstagger
0 msdelay

Usage

TSX
import { Ascender } from "zerogravity/ascender"

<Ascender
    text="Every word arrives on its own beat"
/>

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

Props

10 documented props on Ascender
PropertyTypeDefaultDescription
textstring"Every word arrives on its own beat"Text.
trigger"view" | "mount""view"Trigger.
replaybooleanfalseReplay on re-entry.
durationnumber900Rise. Range 200 to 2000 ms.
staggernumber60Stagger. Range 0 to 300 ms.
delaynumber0Delay. Range 0 to 1500 ms.
as"span" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div""span"Element rendered.
easingstring"cubic-bezier(0.16, 1, 0.3, 1)"Timing function for each word.
disabledbooleanfalseRender the text static.
respectReducedMotionbooleantrueShow the text still when the reader prefers reduced motion.

Dependencies

0 external runtime dependencies

Ships with nothing but React.