KSlideUpText

fun KSlideUpText(text: String, modifier: Modifier = Modifier, visible: Boolean = true, mode: KSlideUpMode = KSlideUpMode.WORD, style: TextStyle = LocalTextStyle.current, initialYOffset: Dp = KSlideUpTextDefaults.InitialYOffset, clipToBounds: Boolean = false, durationMs: Int = KSlideUpTextDefaults.DurationMs, staggerMs: Int = KSlideUpTextDefaults.StaggerMs, delayMs: Int = KSlideUpTextDefaults.DelayMs, easing: Easing = KSlideUpTextDefaults.DefaultEasing)(source)

Text component that reveals text upward word-by-word, character-by-character, or as a full block with staggered delays and smooth Y-axis physics (Spell.sh / Magic UI inspired).

Parameters

text

Source text string to animate.

modifier

Applied to the outer text container layout.

visible

Controls whether the animation runs or resets.

mode

Determines sequence division (KSlideUpMode.WORD, KSlideUpMode.CHARACTER, or KSlideUpMode.ALL).

style

Typography style applied to text elements.

initialYOffset

Distance below final position from which characters/words slide up.

clipToBounds

Mask content to container bounds as it slides upward.

durationMs

Animation duration for each individual element.

staggerMs

Stagger delay interval between successive words/characters.

delayMs

Initial delay before starting sequence.

easing

Easing transition curve.