Skip to content

AnimationSpec

data class AnimationSpec(val durationMillis: Duration = 220.milliseconds, val easing: Easing = Easings.OutCubic)

Timing parameters for float/int animations.

Parameters

  • durationMillis: How long the animation takes to reach its target value.

  • easing: The curve applied to progress over that duration.

Constructors

AnimationSpec

constructor(durationMillis: Duration = 220.milliseconds, easing: Easing = Easings.OutCubic)

Parameters

  • durationMillis: How long the animation takes to reach its target value.

  • easing: The curve applied to progress over that duration.

Properties

durationMillis

Parameters

  • durationMillis: How long the animation takes to reach its target value.

easing

val easing: Easing

Parameters

  • easing: The curve applied to progress over that duration.