Text Flip

A 3D character flip on hover, staggered and springy across every single letter.

textflip3dheadlineanimationtypographyhover
Text Flip component preview

Props

PropTypeDefaultDescription
textstring-The string to render.
askeyof React.JSX.IntrinsicElements"span"Tag rendered as the outer element.
direction"top" | "right" | "bottom" | "left""top"Axis the characters rotate around when flipping.
trigger"hover" | "click" | "both""hover"What starts a flip cycle.
durationnumber0.45Flip duration per character in seconds.
staggerDurationnumber0.05Delay between each character, in seconds.
staggerFrom"first" | "last" | "center" | "random" | number"first"Where the stagger wave originates.
easingstringcubic-bezier(0.34, 1.4, 0.64, 1)CSS easing. Default approximates a spring overshoot.
frontColorstringthemeFront face color. Omit for theme auto.
backColorstringthemeBack face color. Omit for theme auto.
disabledbooleanfalseDisable pointer triggers. Imperative flip() still works.
replayKeystring | number-Changing this value forces a flip cycle.