TweenSpec

Class

Common
public class TweenSpec<T>(
    public val durationMillis: Int = DefaultDurationMillis,
    public val delay: Int = 0,
    public val easing: Easing = FastOutSlowInEasing,
) : DurationBasedAnimationSpec<T>

Creates a TweenSpec configured with the given duration, delay, and easing curve.

Parameters

durationMillisduration of the VectorizedTweenSpec animation.
delaythe number of milliseconds the animation waits before starting, 0 by default.
easingthe easing curve used by the animation. FastOutSlowInEasing by default.