Skip to content

Instantly share code, notes, and snippets.

View shubhanshu24510's full-sized avatar
๐ŸŽฏ
Practice everyday

SHUBHANSHU SINGH shubhanshu24510

๐ŸŽฏ
Practice everyday
  • India
View GitHub Profile
@shubhanshu24510
shubhanshu24510 / FlipCard.kt
Created April 21, 2024 15:13 — forked from mo7amd89/FlipCard.kt
Flip Card with Jetpack Compose
@Composable
fun FlipActionScreen() {
var flippedState by remember { mutableStateOf(false) }
val rotationY by animateFloatAsState(
targetValue = if (flippedState) 180f else 0f,
animationSpec = spring(
dampingRatio = Spring.DampingRatioHighBouncy,
stiffness = Spring.StiffnessVeryLow
)
)