fade

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

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

Parameters

highlightColor

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

animationSpec

the AnimationSpec to configure the animation.

Samples

com.google.accompanist.sample.placeholder.DocSample_Foundation_PlaceholderFade