shake

fun Modifier.shake(shakeController: ShakeController): Modifier

Applies a shake animation to the composable when triggered by the shakeController.

This modifier uses the ShakeConfig provided by the shakeController to determine the behavior of the shake animation. The animation includes rotation, scaling, and translation effects based on the configuration.

Return

A Modifier that applies the shake animation.

Parameters

shakeController

The controller that manages the shake animation.

See also