Per-character 3D vertical flip on hover with staggered timing and reduced-motion support, powered by Motion. React.
Text link or label whose characters flip vertically in 3D when hovered.
Installation
File Structure
Usage
Render as an anchor link and reverse the flip direction:
Keep the flipped state on mouse leave instead of flipping back:
Props
| Prop | Type | Default |
|---|---|---|
text | string | - |
stagger? | number | 0.03 |
duration? | number | 0.5 |
depth? | number | 800 |
zOffset? | number | string | "0.1em" |
flipOut? | boolean | true |
reverse? | boolean | false |
transition? | Transition | - |
as? | React.ElementType | "span" |
href? | string | - |
className? | string | - |
When to Use
Use TextFlip for interactive links, nav items, and footer contacts where a tactile per-character 3D flip reinforces hover feedback without shifting layout. It differs from Rolling Text, which plays a one-time scroll-triggered slot reveal, and Text Roll, which transitions between changing string values.
Accessibility
The full string is exposed via aria-label on the root element while the per-character 3D glyph spans are marked aria-hidden, so screen readers announce the text cleanly once. When prefers-reduced-motion: reduce is enabled, TextFlip skips the 3D flip and renders static text.
Rolling Text
Per-character slot-machine reveal that rolls each letter into place once it scrolls into view, powered by Motion. React.
Text Cursor Loop
Cycles through a list of words with a per-character collapse/reveal transition and a trailing cursor glyph that wipes across the text between words. React.
Built by Axyl. A motion-first component registry for React.
Last updated: 11/27/2026