3D Letter Swap

Staggered customizable 3D letter swap animation

3d-letter-swap-tw

Hover Me!HHoovveerr MMee!!

Customize

Text & Stagger

0.03s

Animation

0.6s
4px

Scroll & Accessibility

0.1

Props

childrenReact.ReactNode

The content to be displayed and animated

Default:-
asElementType

HTML Tag to render the component as

Default:"p"
classNamestring

Class name for the main container element

Default:""
frontFaceClassNamestring

Class name for the front face element

Default:""
backFaceClassNamestring

Class name for the secondary face element

Default:""
staggerIntervalnumber

Duration of stagger delay between elements in seconds

Default:0.05
staggerOrigin"first" | "last" | "center" | "random" | number

Direction to stagger animations from

Default:"first"
animationValueAnimationTransition | AnimationOptions

Animation transition configuration

Default:{ type: 'spring', damping: 30, stiffness: 300 }
flipDirection"top" | "bottom"

Direction of rotation

Default:"top"
playOnScrollboolean

Trigger animation when element scrolls into view

Default:false
scrollThresholdnumber

IntersectionObserver threshold for scroll trigger

Default:0.1
blurboolean

Enable blur effect during animation

Default:false
blurAmountnumber

Amount of blur in pixels during transition

Default:4
durationnumber

Duration of the animation in seconds

Default:0.6
onAnimationStart() => void

Callback fired when animation starts

Default:undefined
onAnimationComplete() => void

Callback fired when animation completes

Default:undefined
respectReducedMotionboolean

Honor user's prefers-reduced-motion setting

Default:true