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
texttriggerreplayTimingper word, then between words
900 ms
duration60 ms
stagger0 ms
delayUsage
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
| Property | Type | Default | Description |
|---|---|---|---|
text | string | "Every word arrives on its own beat" | Text. |
trigger | "view" | "mount" | "view" | Trigger. |
replay | boolean | false | Replay on re-entry. |
duration | number | 900 | Rise. Range 200 to 2000 ms. |
stagger | number | 60 | Stagger. Range 0 to 300 ms. |
delay | number | 0 | Delay. Range 0 to 1500 ms. |
as | "span" | "p" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div" | "span" | Element rendered. |
easing | string | "cubic-bezier(0.16, 1, 0.3, 1)" | Timing function for each word. |
disabled | boolean | false | Render the text static. |
respectReducedMotion | boolean | true | Show the text still when the reader prefers reduced motion. |
Dependencies
0 external runtime dependencies
Ships with nothing but React.