Shimmer

@Composable()
fun Shimmer(modifier: Modifier = Modifier, baseColor: Color, highlightColor: Color, intensity: Float = DefaultShimmerIntensity, dropOff: Float = DefaultShimmerDropOff, tilt: Float = DefaultShimmerTilt, durationMillis: Int = DefaultDurationMillis)

Create a shimmering effect composable with base and highlighting colors.

Parameters

modifier

basic modifier, must be applied fillMaxSize().

baseColor

base background color of this composable.

highlightColor

highlight shimmering effect color of this composable.

intensity

controls the brightness of the highlight at the center.

dropOff

controls the size of the fading edge of the highlight.

tilt

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

durationMillis

animation duration of the shimmering start to end.