Created
April 28, 2022 09:38
-
-
Save GianpaMX/06427002502db2d2937c312290736f0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val transitionState = remember { MutableTransitionState(AnimationState.NOT_STARTED) } | |
val transition = updateTransition(transitionState, label = "transition") | |
val elevation by transition.animateDp( | |
label = "elevation", | |
targetValueByState = { if (it.hasStarted()) 14.dp else 0.dp } | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment