fade

fun PlaceholderHighlight.Companion.fade(highlightColor: <Error class: unknown class>, animationSpec: <Error class: unknown class><Float> = PlaceholderDefaults.fadeAnimationSpec): PlaceholderHighlight

Deprecated

accompanist/placeholder is deprecated and the API is no longer maintained. We recommend forking the implementation and customising it to your needs. For more information please visit https://google.github.io/accompanist/placeholder

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