Cards
Cardsanimated
Frozen Debit Card
Debit card in a frozen state with a shimmering frost overlay and lock badge.
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 FrozenDebitCard() {
val t = rememberInfiniteTransition(label = "frost")
val a by t.animateFloat(
0.2f, 0.5f,
infiniteRepeatable(tween(1600), RepeatMode.Reverse),
label = "a"
)
Card(
modifier = Modifier.fillMaxWidth().padding(16.dp).height(180.dp),
shape = RoundedCornerShape(20.dp)
) {
Box(
Modifier.fillMaxSize().background(
Brush.linearGradient(
listOf(Color(0xFF334155), Color(0xFF1E293B))
)
)
) {
Box(
Modifier.fillMaxSize().background(
Color(0xFF93C5FD).copy(alpha = a)
)
)
Column(Modifier.fillMaxSize().padding(20.dp)) {
Row(verticalAlignment = Alignment.CenterVertically) {
Icon(Icons.Filled.Lock, null, tint = Color.White)
Spacer(Modifier.width(8.dp))
Text("FROZEN", color = Color.White,
style = MaterialTheme.typography.labelMedium)
}
Spacer(Modifier.weight(1f))
Text("•••• 7741", color = Color.White.copy(alpha = 0.8f),
letterSpacing = 2.sp)
}
}
}
}