DurationBasedAnimationSpec

A FiniteAnimationSpec whose forward cycle has a known, fixed duration. Repeating a cycle is only possible when its length is known up front, so repeatable / infiniteRepeatable accept only duration-based specs (springs, which have no fixed cycle, are excluded).

Properties

Link copied to clipboard
abstract val totalDuration: Duration

The duration of one forward cycle, including any initial delay baked into the spec.

Functions

Link copied to clipboard
abstract fun createAnimator(initialValue: T, targetValue: T, typeConverter: TypeConverter<T>, initialVelocity: AnimationVector? = null): Animator<T>

Creates an Animator configured with the given initial conditions.