What problem does it solve?
This Skill guides developers in implementing rich motion and transitions in Android UI using Jetpack Compose, helping to create responsive, engaging interfaces without boilerplate confusion.
Core Features & Use Cases
- AnimatedVisibility: fade/expand or collapse UI components for dynamic visibility.
- Value & Content Transitions: animate size, color, position, and content changes with animate*AsState, Crossfade, and AnimatedContent.
- Gesture & Layout Animations: build gesture-driven motions, multi-property transitions, and list item placements with updateTransition and animation APIs.
Quick Start
Install Compose animation dependencies in your project:
- implementation "androidx.compose.animation:animation:1.5.4"
- implementation "androidx.compose.ui:ui:1.5.4"
Quick Start example:
Start by enabling a simple animated visibility: var visible by remember { mutableStateOf(true) }
AnimatedVisibility(visible = visible, enter = fadeIn(), exit = fadeOut()) {
Text("Animated content here")
}