Toggle Sidebar B
AppearanceLight & dark mode D

Scroll Float

Text gently floats / parallax shifts on scroll.

Default

Scroll the box. Each character floats into place, scrubbed by the scroll position. Changing a control resets the scroll.

Light previewReplay previewOpen in new tab

Scroll Down

Customize

Stagger0.03
Duration1

API Reference

ScrollFloat

PropTypeDefaultDescription
textstring""The content to animate. It is split into individual characters.
scrollContainerHTMLElement | nullnullOptional scroll container element. Defaults to window if not provided.
containerClassNamestring""Additional classes for the container element.
textClassNamestring""Additional classes for the text element.
animationDurationnumber1Duration (in seconds) of the animation.
easestring"back.inOut(2)"Easing function used for the animation.
scrollStartstring"center bottom+=50%"The scroll trigger start position.
scrollEndstring"bottom bottom-=40%"The scroll trigger end position.
staggernumber0.03Delay between the animation start of each character.

Accessibility

Keyboard shortcuts and ARIA behavior.

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