Function

snap

Creates a Snap animation for immediately switching the animating value to the end value.

snap

Source set: Common
@Stable public fun <T> snap(delayMillis: Int = 0): SnapSpec<T>

Creates a Snap animation for immediately switching the animating value to the end value.

Parameters

delayMillis the number of milliseconds to wait before the animation runs. 0 by default.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: