Rohit
02/24/2026, 5:54 AMRiveAnimationComponent(
source = page.riveAnimationUrl,
modifier = Modifier
.fillMaxSize()
.blur(Spacing.s64)
.alpha(if (pageNumber >= 1) 0.4f else 1f)
.scale(2f),
autoPlay = true,
loop = true
)
@OptIn(ExperimentalRiveCmpApi::class)
@Composable
fun RiveAnimationComponent(
source: String,
modifier: Modifier = Modifier,
) {
...
Box(modifier = modifier) {
CustomRiveAnimation(
modifier = Modifier.matchParentSize(),
composition = composition
)
}
}