Skip to content
PixiKit

Flip Letters

Text whose letters roll over in 3D when hovered, one after another, each turning up a fresh copy of itself, with an optional blur while it turns.

pixikit.com/docs/effects/flip-letters

Customize

Stagger interval0.03s
Stagger origin
Flip direction
Play on scroll
Scroll threshold0.10
Blur
Blur amount4px
Duration0.6s
Respect reduced motion

Props

19
NameTypeDefaultDescription
textstringNoneThe text, when it is not passed as children.
childrenReactNodeNoneThe text as children. Only plain text is split into letters.
asElementType"p"The element the text renders as.
classNamestringNone
frontFaceClassNamestring""Classes for the face each letter shows at rest.
backFaceClassNamestring""Classes for the face that turns in.
staggerIntervalnumber0.05The delay between one letter and the next, in seconds.
staggerOrigin"first" | "last" | "center" | "random" | number"first"Where the flip starts: the first or last letter, the centre, a random order, or a letter index.
animationFlipLettersAnimation{ type: "spring", damping: 30, stiffness: 300 }How a letter turns: a spring with damping and stiffness, or a tween that takes duration seconds.
flipDirection"top" | "bottom""top"The side the new face turns in toward.
playOnScrollbooleanfalsePlays once when the text scrolls into view.
scrollThresholdnumber0.1How much of the text must be in view before it plays, 0 to 1.
blurbooleanfalseBlurs each letter while it turns.
blurAmountnumber4The strongest blur, in pixels.
durationnumber0.6The length of a timed flip, in seconds.
onAnimationStart() => voidNoneCalled when a flip starts.
onAnimationComplete() => voidNoneCalled when every letter has landed.
respectReducedMotionbooleantrueSkips the motion for visitors who ask for reduced motion.
styleCSSPropertiesNone

More text effects in Pro

View all

Related