Rise On Scroll
A big heading that assembles with the scroll: letters or words float up stretched out of a slot, roll in on a drum, gather from scattered spots, pull into focus or swell in on a wave, staggered in any order and tied to the scroll position.
pixikit.com/docs/effects/rise-on-scroll
Customize
Effect
Split by
Direction
Order
From color
Animation duration1.0s
Ease
Stagger0.03s
Distance120%
Stretch2.3
Smoothing0.0s
Props
20| Name | Type | Default | Description |
|---|---|---|---|
children | ReactNode | None | The text to animate. Plain text is split into letters or words; anything else moves in as one piece. |
text | string | "Float into view" | The text, when no children are given. |
scrollContainerRef | RefObject<HTMLElement | null> | None | A ref to the element that scrolls. Leave it out to use the page. |
effect | "float" | "flip" | "scatter" | "blur" | "wave" | "float" | How the pieces arrive: stretched up out of a slot, rolled in on a drum, gathered from random spots, pulled into focus, or growing in on a wave. |
splitBy | "chars" | "words" | "chars" | Animate each letter on its own or each word as one piece. |
direction | "up" | "down" | "up" | Whether the pieces come in from below or from above. |
order | "start" | "end" | "center" | "edges" | "random" | "start" | Which pieces go first. Random looks the same on every visit. |
fromColor | string | "currentColor" | The colour the pieces start in before they settle into the text colour. |
animationDuration | number | 1 | The length of each piece's move compared to the stagger. Higher values move the pieces more together. |
ease | string | "back.inOut(2)" | The easing: 'power1' to 'power4', 'sine', 'expo', 'circ', 'back' or 'elastic' with '.in', '.out' or '.inOut', or 'none'. |
stagger | number | 0.03 | The delay between pieces. Higher values form the text one piece at a time. |
distance | number | 120 | How far the pieces travel, as a percentage of their height. |
stretch | number | 2.3 | How tall the pieces are stretched while they rise in the float effect. 1 keeps their shape. |
smoothing | number | 0 | How long the pieces take to catch up with the scroll, in seconds. 0 ties them to it directly. |
scrollStart | string | "center bottom+=50%" | The scroll position where the animation starts, as "<element edge> <viewport edge>". |
scrollEnd | string | "bottom bottom-=40%" | The scroll position where the pieces settle. Text near the end of the page still settles fully. |
containerClassName | string | "" | Extra class names for the heading. |
textClassName | string | "" | Extra class names for the text. |
className | string | None | |
style | CSSProperties | None |