Menu

Letter 3D Swap

33DD SSWWAAPP HHOOVVEERR

Customize

Text
Flip Duration (s)0.45
Stagger Duration (ms)50

Props

textstring

Display text to split into characters and flip. Re-splits into a fresh set of characters whenever it changes.

Default"DEPARTURES"
direction"top" | "right" | "bottom" | "left"

Flip axis — which edge each character rotates around.

Default"right"
staggerFromstring | number

Stagger origin: "first", "last", "center", "random", or an index.

Default"first"
staggerDurationnumber

Delay (ms) between each character’s flip start.

Default50
flipDurationnumber

Duration (s) of each character’s flip tween. Ease is fixed to "back.out(1.6)".

Default0.45
trigger"hover" | "mount" | "manual"

What starts the flip: hovering the board, once on mount, or an imperative call via ref.flip().

Default"hover"
onFlipComplete() => void

Called once the full staggered flip timeline finishes.

Defaultundefined
charClassNamestring

Extra classes applied to each character’s flip container.

Default""
classNamestring

Extra classes applied to the root wrapper element.

Default""

Dependencies

gsap 3.15.0

Crafted withbyMohammad Tasin