Skip to content
roguelite labsAnthony Spezzano ↗
motion/flip-reveal

Flip Reveal

Text enters with a 3D X-axis flip per character — rotateX 90→0 — staggered using framer-motion variants.

Use and inspectUse this when the motion supports the surrounding content. Connect callbacks and state to your app, keep the reset preview as a local demonstration, and add a reduced-motion fallback for movement or looping. The preview is synthetic; it does not call a backend.Next: inspect the source below and replace the demo inputs with your own data.
Flip RevealText enters with a 3D X-axis flip per character — rotateX 90→0 — staggered using framer-motion variants.
Installnpm install framer-motion

Props

PropTypeDefaultDescription
textrequiredstringText to reveal with flip
loopbooleanfalseRestart the reveal on an interval
durationnumber2200Loop interval in ms (when loop=true)