Custom

constructor(durationMillis: Int = DEFAULT_ANIMATION_DURATION, alpha: (Float) -> Float = { 1f }, scaleX: (Float) -> Float = { 1f }, scaleY: (Float) -> Float = { 1f }, translationX: (Float) -> Float = { 0f }, translationY: (Float) -> Float = { 0f }, rotationZ: (Float) -> Float = { 0f })(source)

Parameters

durationMillis

Total duration of the animation in milliseconds.

alpha

Maps progress -> opacity.

scaleX

Maps progress -> horizontal scale factor.

scaleY

Maps progress -> vertical scale factor.

translationX

Maps progress -> horizontal translation in pixels.

translationY

Maps progress -> vertical translation in pixels.

rotationZ

Maps progress -> rotation around the Z-axis in degrees.