shimmerSpec

fun shimmerSpec(durationMillis: Int = DefaultDurationMillis, delayMillis: Int = 0, easing: Easing = LinearEasing): KeyframesSpec<Float>

Creates a KeyframesSpec which animates from 0f to 1f during the time span defined in durationMillis. The additional delayMillis define how long the animation will stay at its final value of 1f before the animation ends. The spec will ignore any initial or target value defined in an Animatable.

Parameters

durationMillis

duration of the animation spec. Excluding the delayMillis.

delayMillis

additional amount of time the animation will stay at 1f before ending.

easing

the easing curve that will be used to interpolate between 0f and 1f.