Shimmer

constructor(highlightColor: Color, animationSpec: InfiniteRepeatableSpec<Float> = infiniteRepeatable( animation = tween(durationMillis = 650, easing = LinearEasing), ), intensity: Float = 0.0f, dropOff: Float = 0.5f, tilt: Float = 20.0f)

Parameters

highlightColor

The color of the shimmer highlight.

animationSpec

The animation spec for the shimmer progress.

intensity

Controls the brightness of the highlight at the center. Values are typically between 0f and 1f.

dropOff

Controls the size of the fading edge of the highlight. Values are typically between 0f and 1f.

tilt

The angle at which the highlight is tilted, in degrees.

durationMillis

The duration of one shimmer animation cycle.