Skip to content

Flip3D

The Flip3D text effect splits text content into character, word, or line units and rotates them in 3D space along a horizontal or vertical axis, emulating split-flap or modern dimensional displays.


Horizontal 3D Flip (X-Axis)

The default configuration rotates text units around the horizontal X-axis.

SPLIT-FLAP

60 FPS

Vertical 3D Flip (Y-Axis)

Setting axis: 'Y' rotates text units around the vertical Y-axis.

DIMENSIONAL

60 FPS

Word-Level Flapping

Setting the type parameter to 'words' flips whole word tokens instead of individual letters.

FLAP COMPLETE WORDS

60 FPS

Perspective & Transform-Origin Configurations

Reducing the perspective value (e.g. '300px') intensifies the 3D depth distortion. Customizing transformOrigin overrides rotation anchor coordinates.

DISTORTION

60 FPS

Snappy Looping Display

Combining repeat: -1 and yoyo: true structures an infinite split-flap transition cycle.

LOOPING

60 FPS

API Reference

javascript
import { flip3D } from 'animx/plugins/Text'

const tl = flip3D(target, config)

Configuration Options

OptionDefaultDescription
type'chars'Slicing unit layout: 'chars', 'words', or 'lines'.
axis'X'Axis of rotation: 'X' or 'Y'.
rotate-90Starting angular displacement offset in degrees.
fadetrueInterpolates opacity from 0 to 1 during rotation.
perspective'1000px'CSS perspective depth applied to the layout container.
transformOrigin'top center'CSS rotation anchor. Defaults to 'top center' for 'X', 'center left' for 'Y'.
duration0.8Rotation duration of each individual unit in seconds.
ease'back.out(1.5)'Deceleration easing profile.
stagger0.05Delay offset between subsequent elements in seconds.
revertOnCompletefalseResets layout and removes absolute spans on complete.
pausedfalseStandard playback initialization lock flag.