
Lightweight animation library enables customizable snowflake effects in user interfaces. Features include adjustable density, color, and usage in any composable context, optimizing rendering for efficiency.
A lightweight and customizable snowflake animation library for Jetpack Compose Multiplatform, supporting Android, iOS, Desktop, and Web platforms.
Add beautiful animated snow effects to your UI effortlessly.
Add this module as a dependency in your Compose Multiplatform project.
Gradle (Kotlin DSL):
dependencies {
implementation("com.anasmusa:snowflake:$latest_version")
}Snowflake(
modifier = Modifier.fillMaxSize(),
density = 5, // 1 (low) to 10 (high)
color = Color.White
)SnowflakeBox(
modifier = Modifier.fillMaxSize(),
density = 7,
color = Color.Cyan,
contentAlignment = Alignment.Center
) {
Text("Happy Holidays!", color = Color.White)
}Renders snowflake animation on a Canvas.
modifier: Modifier β Compose modifier to control layoutdensity: Int (1β10) β Number of snowflakescolor: Color β Color of the snowflakescontentDescription: String? β Optional accessibility descriptionRenders snowflakes as a background behind any composable content.
modifier: Modifier
density: Int (1β10)color: Color
contentAlignment: Alignment
propagateMinConstraints: Boolean
content: Composable lambda to provide inner UIInspired by the original snowflake animation from the Telegram Android client, this version is adapted and rewritten for Compose Multiplatform.
A lightweight and customizable snowflake animation library for Jetpack Compose Multiplatform, supporting Android, iOS, Desktop, and Web platforms.
Add beautiful animated snow effects to your UI effortlessly.
Add this module as a dependency in your Compose Multiplatform project.
Gradle (Kotlin DSL):
dependencies {
implementation("com.anasmusa:snowflake:$latest_version")
}Snowflake(
modifier = Modifier.fillMaxSize(),
density = 5, // 1 (low) to 10 (high)
color = Color.White
)SnowflakeBox(
modifier = Modifier.fillMaxSize(),
density = 7,
color = Color.Cyan,
contentAlignment = Alignment.Center
) {
Text("Happy Holidays!", color = Color.White)
}Renders snowflake animation on a Canvas.
modifier: Modifier β Compose modifier to control layoutdensity: Int (1β10) β Number of snowflakescolor: Color β Color of the snowflakescontentDescription: String? β Optional accessibility descriptionRenders snowflakes as a background behind any composable content.
modifier: Modifier
density: Int (1β10)color: Color
contentAlignment: Alignment
propagateMinConstraints: Boolean
content: Composable lambda to provide inner UIInspired by the original snowflake animation from the Telegram Android client, this version is adapted and rewritten for Compose Multiplatform.