fade

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

Creates a Fade brush with the given initial and target colors.

Samples

com.google.accompanist.sample.placeholder.DocSample_Foundation_PlaceholderFade

Parameters

highlightColor

the color of the highlight which is faded in/out.

animationSpec

the AnimationSpec to configure the animation.