Toggle Sidebar B
AppearanceLight & dark mode D

Fold Text

Lines unfold into place like creased paper opening flat.

Default

Every prop is wired to the controls underneath. Any change replays the animation, and the refresh button replays it on demand.

Dark previewReplay previewOpen in new tab
Design unfolds

Customize

Split By
Hinge
Trigger
Ease
Text Color
Duration0.65s
Stagger0.045s
Perspective700px
Crease Shading0.55
Font Size80px
Font Weight800

API Reference

FoldText

PropTypeDefaultDescription
textstring"Design unfolds"The text content to split and fold into place.
splitBy"char" | "word" | "line""char"Controls whether each character, word, or explicit line folds as a panel.
hinge"top" | "bottom" | "left" | "right""top"The edge that acts as the 3D fold hinge.
durationnumber0.65Duration in seconds for each panel to unfold.
staggernumber0.045Delay in seconds between panels; 0.03 to 0.08 keeps the cascade crisp.
easestring"power3.out"GSAP easing curve used by the unfold timeline.
perspectivenumber700Perspective distance applied to each panel parent.
creaseShadingnumber0.55Strength of the gradient shade while panels are folded.
trigger"mount" | "hover" | "scroll" | "loop""mount"Determines when the unfold animation starts.
fontSizestring | number80Font size applied to the root text.
fontWeightstring | number800Font weight applied to the root text.
colorstring"#f7f2e8"Text color of the folded panels.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • A visually hidden copy of the text is always in the DOM and the animated panels are aria-hidden, so screen readers read the text once.
  • With prefers-reduced-motion the fold is replaced by a short fade.