fade

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

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.


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

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

Parameters

animationSpec

the AnimationSpec to configure the animation.