Skip to content

ClipPathReveal

The ClipPathReveal text effect animates CSS clip-path inset vectors, wiping text units horizontally, vertically, or outward from the center, optionally blending opacity.


Horizontal Sweep Reveal

The default behavior reveals text from left to right. The direction: 'right' configuration animates the inset boundary towards the right margin.

Horizontal sweeping mask layout.

60 FPS

Center-Out Radial Expansion

Setting the direction parameter to 'center' animates the clipping inset symmetrically from the center coordinates outward.

EXPANSION

60 FPS

Vertical Wipe (Top-to-Bottom)

Setting the direction parameter to 'down' wipes text lines vertically.

First line reveals downward.
Second line follows stagger.
60 FPS

Custom Deceleration Easing

Applying a non-linear ease value (e.g. 'bounce.out') changes the clipping expansion profile.

BOUNCING REVEAL

60 FPS

Timeline Sequence Chaining

Because the helper returns a standard Timeline instance, clip-path reveals can be chained with subsequent scale or color tweens.

CHAINED SEQUENCING

60 FPS

API Reference

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

const tl = TextEffects.clipPathReveal(target, config)

Configuration Options

OptionDefaultDescription
type'words'Slicing unit layout: 'chars', 'words', or 'lines'.
direction'right'Clipping path direction: 'right', 'left', 'down', 'up', or 'center'.
fadetrueBlends opacity from 0 to 1 during execution.
duration1.0Sweep timeline duration in seconds.
ease'cubic.out'Deceleration easing profile.
stagger0.08Delay gap between adjacent text block reveals.
revertOnCompletefalseResets layout and removes absolute spans on complete.
pausedfalseStandard playback initialization lock flag.