Icons
Iconsanimated
Flame
A fire that flickers organically with scale and shear — for streaks, trends and hot items.
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 Flame() {
val t = rememberInfiniteTransition(label = "fire")
val s by t.animateFloat(0.9f, 1.12f, infiniteRepeatable(tween(220, easing = EaseInOut), RepeatMode.Reverse), label = "s")
val skew by t.animateFloat(-3f, 3f, infiniteRepeatable(tween(300, easing = EaseInOut), RepeatMode.Reverse), label = "k")
Icon(Icons.Filled.LocalFireDepartment, "Hot",
tint = Color(0xFFF59E0B),
modifier = Modifier.size(30.dp).graphicsLayer { scaleY = s; rotationZ = skew; transformOrigin = TransformOrigin(0.5f, 1f) })
}