3D Letter Swap

Staggered customizable 3D letter swap animation

3d-letter-swap-tw

Hover Me!HHoovveerr MMee!!

Customize

0.03s
0.6s
4px
0.1

Props

NameTypeDefaultDescription
childrenReact.ReactNode-The content to be displayed and animated
asElementType"p"HTML Tag to render the component as
classNamestring""Class name for the main container element
frontFaceClassNamestring""Class name for the front face element
backFaceClassNamestring""Class name for the secondary face element
staggerIntervalnumber0.05Duration of stagger delay between elements in seconds
staggerOrigin"first" | "last" | "center" | "random" | number"first"Direction to stagger animations from
animationValueAnimationTransition | AnimationOptions{ type: 'spring', damping: 30, stiffness: 300 }Animation transition configuration
flipDirection"top" | "bottom""top"Direction of rotation
playOnScrollbooleanfalseTrigger animation when element scrolls into view
scrollThresholdnumber0.1IntersectionObserver threshold for scroll trigger
blurbooleanfalseEnable blur effect during animation
blurAmountnumber4Amount of blur in pixels during transition
durationnumber0.6Duration of the animation in seconds
onAnimationStart() => voidundefinedCallback fired when animation starts
onAnimationComplete() => voidundefinedCallback fired when animation completes
respectReducedMotionbooleantrueHonor user's prefers-reduced-motion setting