Text effects
Cube flip letters
Cube flip letters: Hovering a line turns every letter a quarter turn in 3D, one after another from a chosen origin, revealing a second face that carries the same glyph in the accent.
Using Cube flip letters
Cube flip letters uses the card preview frame with a light/dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
text | text | Measure twice, cut once | Up to 48 characters |
direction | select | top | Options: top, right, bottom, left |
origin | select | first | Options: first, last, center, random |
stagger | number | 30 | From 0 to 120; step 5 |
accent | color | #38BDF8 | No additional limit in the metadata. |
Which frameworks are available for Cube flip letters?
Cube flip letters is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Cube flip letters depend on?
The React metadata lists these npm dependencies beyond React: motion.
What accessibility details are visible in Cube flip letters?
The React source for Cube flip letters includes: attributes and handlers (aria-hidden, tabIndex). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Cube flip letters handle reduced motion?
Cube flip letters reads the motion preference in its React source through matchMedia(prefers-reduced-motion). Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.