TargetAnimation
Kotlin
|Java
data class TargetAnimation
kotlin.Any | |
↳ | androidx.compose.animation.core.TargetAnimation |
TargetAnimation class defines how to animate to a given target value.
Summary
Public constructors | |
---|---|
<init>(target: Float, animation: AnimationSpec<Float> = SpringSpec()) TargetAnimation class defines how to animate to a given target value. |
Properties | |
---|---|
AnimationSpec<Float> |
The animation that will be used to animate to the target destination. |
Float |
Target value for the animation to animate to |
Public constructors
<init>
TargetAnimation(
target: Float,
animation: AnimationSpec<Float> = SpringSpec())
TargetAnimation class defines how to animate to a given target value.
Parameters | |
---|---|
target: Float | Target value for the animation to animate to |
animation: AnimationSpec<Float> = SpringSpec() | The animation that will be used to animate to the target destination. This animation defaults to a Spring Animation unless specified. |
Properties
animation
val animation: AnimationSpec<Float>
The animation that will be used to animate to the target destination. This animation defaults to a Spring Animation unless specified.