Icons
Iconsanimated
Rocket
A rocket that hovers with a flickering exhaust plume — for launches, deploys and boosts.
Installation
caveui components are copy-paste Jetpack Compose built entirely on Material 3 — there's no caveui dependency to add. Make sure Material 3 is on your classpath (it ships with the Compose BOM), then copy the Usage snippet below into your project.
kotlin
// build.gradle.kts (module)
dependencies {
implementation(platform("androidx.compose:compose-bom:2025.06.00"))
implementation("androidx.compose.material3:material3")
}Usage
kotlin
@Composable
fun RocketLaunch() {
val t = rememberInfiniteTransition(label = "rkt")
val bob by t.animateFloat(-1.5f, 1.5f, infiniteRepeatable(tween(700), RepeatMode.Reverse), label = "bob")
val flame by t.animateFloat(0.7f, 1.3f, infiniteRepeatable(tween(140), RepeatMode.Reverse), label = "f")
val color = LocalContentColor.current
Box(Modifier.size(40.dp), contentAlignment = Alignment.Center) {
Icon(Icons.Filled.Rocket, "Launch", tint = color, modifier = Modifier.size(30.dp).offset(y = bob.dp))
Canvas(Modifier.size(30.dp)) {
drawPath(flamePath(center, flame), Brush.verticalGradient(listOf(Color(0xFFF59E0B), Color(0xFFE11D48))))
}
}
}