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
highlight Color
The color of the shimmer highlight.
animation Spec
The animation spec for the shimmer progress.
intensity
Controls the brightness of the highlight at the center. Values are typically between 0f and 1f.
drop Off
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.
duration Millis
The duration of one shimmer animation cycle.