Toggle Sidebar B
AppearanceLight & dark mode D

Scroll Reveal

Text gently unblurs and reveals on scroll.

Default

Scroll the box. Words fade in and unblur one after another while the block straightens. Changing a control resets the scroll.

Light previewReplay previewOpen in new tab

Scroll Down

Customize

Blur Strength4
Starting Opacity0.1
Starting Rotation3°

API Reference

ScrollReveal

PropTypeDefaultDescription
textstring""The text to be animated. It is split into words.
scrollContainerHTMLElement | nullnullOptional scroll container element. If provided, GSAP uses it for scroll triggers; otherwise it defaults to the window.
enableBlurbooleantrueEnables the blur animation effect on the words.
baseOpacitynumber0.1The initial opacity value for the words before the animation.
baseRotationnumber3The starting rotation (in degrees) for the container before it animates to 0.
blurStrengthnumber4The strength of the blur effect (in pixels) applied at the start of the animation.
containerClassNamestring""Additional CSS class(es) to apply to the container element.
textClassNamestring""Additional CSS class(es) to apply to the text element.
rotationEndstring"bottom bottom"The scroll trigger end point for the container rotation animation.
wordAnimationEndstring"bottom bottom"The scroll trigger end point for the word opacity and blur animations. The animation completes when the bottom of the text reaches the bottom of the container.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • The text stays in the DOM as real words. Scrolling with the keyboard drives the animation like the wheel does.