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| Name | Type | Default | Description |
|---|---|---|---|
text | string | None | The text, when it is not passed as children. |
children | ReactNode | None | The text as children. Only plain text is split into letters. |
as | ElementType | "p" | The element the text renders as. |
className | string | None | |
frontFaceClassName | string | "" | Classes for the face each letter shows at rest. |
backFaceClassName | string | "" | Classes for the face that turns in. |
staggerInterval | number | 0.05 | The 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. |
animation | FlipLettersAnimation | { 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. |
playOnScroll | boolean | false | Plays once when the text scrolls into view. |
scrollThreshold | number | 0.1 | How much of the text must be in view before it plays, 0 to 1. |
blur | boolean | false | Blurs each letter while it turns. |
blurAmount | number | 4 | The strongest blur, in pixels. |
duration | number | 0.6 | The length of a timed flip, in seconds. |
onAnimationStart | () => void | None | Called when a flip starts. |
onAnimationComplete | () => void | None | Called when every letter has landed. |
respectReducedMotion | boolean | true | Skips the motion for visitors who ask for reduced motion. |
style | CSSProperties | None |