KTextMarquee
fun KTextMarquee(items: List<@Composable () -> Unit>, modifier: Modifier = Modifier, prefix: @Composable () -> Unit? = null, orientation: KMarqueeOrientation = KTextMarqueeDefaults.Orientation, containerHeight: Dp = KTextMarqueeDefaults.Height, itemHeight: Dp = KTextMarqueeDefaults.ItemHeight, speedSecondsPerCycle: Float = KTextMarqueeDefaults.SpeedSecondsPerCycle, enableFadeMask: Boolean = true)(source)
Vertical or horizontal infinite text/content marquee component with edge fade gradient masking (Spell.sh / Magic UI inspired).
Parameters
items
List of composable content items to scroll continuously.
modifier
Applied to the marquee container layout.
prefix
Optional composable displayed statically before the marquee slot.
orientation
Direction of continuous scroll (KMarqueeOrientation.VERTICAL or KMarqueeOrientation.HORIZONTAL).
containerHeight
Viewport height for vertical marquee masking.
itemHeight
Height allotted per item step.
speedSecondsPerCycle
Duration in seconds for one full loop cycle.
enableFadeMask
Applies top/bottom or left/right gradient alpha mask for smooth entry/exit.