Skip to content
PixiKit

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
NameTypeDefaultDescription
childrenReactNodeNoneThe text to animate. Plain text is split into letters or words; anything else moves in as one piece.
textstring"Float into view"The text, when no children are given.
scrollContainerRefRefObject<HTMLElement | null>NoneA 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.
fromColorstring"currentColor"The colour the pieces start in before they settle into the text colour.
animationDurationnumber1The length of each piece's move compared to the stagger. Higher values move the pieces more together.
easestring"back.inOut(2)"The easing: 'power1' to 'power4', 'sine', 'expo', 'circ', 'back' or 'elastic' with '.in', '.out' or '.inOut', or 'none'.
staggernumber0.03The delay between pieces. Higher values form the text one piece at a time.
distancenumber120How far the pieces travel, as a percentage of their height.
stretchnumber2.3How tall the pieces are stretched while they rise in the float effect. 1 keeps their shape.
smoothingnumber0How long the pieces take to catch up with the scroll, in seconds. 0 ties them to it directly.
scrollStartstring"center bottom+=50%"The scroll position where the animation starts, as "<element edge> <viewport edge>".
scrollEndstring"bottom bottom-=40%"The scroll position where the pieces settle. Text near the end of the page still settles fully.
containerClassNamestring""Extra class names for the heading.
textClassNamestring""Extra class names for the text.
classNamestringNone
styleCSSPropertiesNone

More text effects in Pro

View all

Related