fade

fun PlaceholderHighlight.Companion.fade(animationSpec: InfiniteRepeatableSpec<Float> = PlaceholderDefaults.fadeAnimationSpec): PlaceholderHighlight(source)

Creates a PlaceholderHighlight which fades in an appropriate color, using the given animationSpec.

Parameters

animationSpec

the AnimationSpec to configure the animation.

Samples

com.google.accompanist.sample.placeholder.DocSample_Material_PlaceholderFade