Fold Text(014)

3D origami accordion fold animation that bends and unrolls text slices dynamically.

Scroll
Requires:gsap
Loading…

Installation

$npx kibo add fold-text

Usage

1import { FoldText } from "@/components/kibo/fold-text/component";
2
3export default function Example() {
4 return (
5 <FoldText />
6 );
7}

Props Reference

PropTypeDefaultDescription
textstring'Design unfolds'The text content to display and animate.
splitBySplitBy'char'Controls the split by for the component animation.
hingeHinge'top'Controls the hinge for the component animation.
durationnumber0.65Duration of the animation in seconds or milliseconds.
staggernumber0.045Stagger delay in seconds between individual characters/elements.
easestring'power3.out'GSAP or cubic-bezier easing curve for animation smoothing.
perspectivenumber700Controls the perspective for the component animation.
creaseShadingnumber0.55Controls the crease shading for the component animation.
triggerTrigger'mount'Controls the trigger for the component animation.
fontSizestring | number80Font size in pixels, rems, or fluid clamp notation.
fontWeightstring | number800Font weight (e.g., 400, 700, 900, 'bold').
colorstring'#f7f2e8'Text or primary fill color.
classNamestring''Additional CSS classes for styling and layout.
styleCSSProperties{}Controls the style for the component animation.