Skip to content
PixiKit

Scroll Reveal Text

Text that reveals piece by piece with the scroll: words, characters or lines brighten, sharpen and settle into place while the whole block levels out. Tie it to the scroll position or play it once on entry, with fade, rise, flip and scale effects and an optional highlight colour.

pixikit.com/docs/effects/scroll-reveal-text

Customize

Highlight color
Mode
Split by
Effect
Stagger0.050
Duration0.80s
Smoothing0.0s
Enable blur
Blur strength4px
Base opacity0.10
Base rotation3°
Base offset0px

Props

21
NameTypeDefaultDescription
childrenReactNodeNoneThe text to reveal. Plain text is split into words, characters or lines; anything else is revealed as one piece.
textstring"Good ideas rarely arrive all at once. They come into focus one word at a time, the way a room does when your eyes adjust to the dark."The text, when no children are given.
scrollContainerRefRefObject<HTMLElement | null>NoneA ref to the element that scrolls. Leave it out to use the page.
highlightColorstring""An accent each piece lights up to while it is being revealed. Empty for no highlight.
mode"scrub" | "enter""scrub"Scrub ties the reveal to the scroll position; enter plays it once when the text scrolls into view.
splitBy"words" | "chars" | "lines""words"What each step of the reveal is. Lines regroup on resize.
effect"fade" | "rise" | "flip" | "scale""fade"How each piece appears: brightens in place, slides up from behind its baseline, stands up from flat, or pops up from small.
staggernumber0.05The spacing between pieces. Higher values reveal them one at a time instead of in a soft wave. In enter mode it is in seconds.
durationnumber0.8How long each piece takes to appear in enter mode, in seconds.
smoothingnumber0How long the reveal takes to catch up with the scroll, in seconds. 0 ties it to the scroll directly.
enableBlurbooleantrueStarts each piece out of focus and sharpens it as it appears.
blurStrengthnumber4How blurred the pieces start, in pixels.
baseOpacitynumber0.1The opacity of the pieces before they are revealed, 0 to 1.
baseRotationnumber3The tilt of the whole block before it levels out, in degrees.
baseOffsetnumber0How far below its place each piece starts, in pixels.
rotationEndstring"bottom bottom"The scroll position where the block finishes leveling out in scrub mode, as "<element edge> <viewport edge>".
wordAnimationEndstring"bottom bottom"The scroll position where every piece is fully revealed in scrub mode. Text near the end of the page still finishes.
containerClassNamestring""Extra class names for the heading.
textClassNamestring""Extra class names for the text.
classNamestringNone
styleCSSPropertiesNone

More text effects in Pro

View all

Related