Package-level declarations
Types
Link copied to clipboard
object MotionConstants
Functions
Link copied to clipboard
fun Modifier.circularReveal(visible: Boolean, center: (fullSize: Size) -> Offset = { Offset.Unspecified }, transitionSpec: @Composable Transition.Segment<Boolean>.() -> FiniteAnimationSpec<Float> = { spring() }, label: String = "CircularReveal"): Modifier
Draws circular reveal animation.
Link copied to clipboard
fun MaterialFade(visible: Boolean, modifier: Modifier = Modifier, enterDurationMillis: Int = MotionConstants.DefaultFadeInDuration, exitDurationMillis: Int = MotionConstants.DefaultFadeOutDuration, label: String = "MaterialFade", content: @Composable () -> Unit)
MaterialFade animates the appearance and disappearance of its content, as visible value changes.
Link copied to clipboard
fun <T> MaterialFadeThrough(targetState: T, modifier: Modifier = Modifier, label: String = "MaterialFadeThrough", content: @Composable AnimatedVisibilityScope.(T) -> Unit)
MaterialFadeThrough allows to switch between two layouts with a fade through animation.
Link copied to clipboard
fun <S> MaterialMotion(targetState: S, transitionSpec: AnimatedContentTransitionScope<S>.() -> ContentTransform, modifier: Modifier = Modifier, pop: Boolean = false, contentAlignment: Alignment = Alignment.TopStart, label: String = "MaterialMotion", contentKey: (targetState: S) -> Any? = { it }, content: @Composable AnimatedVisibilityScope.(targetState: S) -> Unit)
MaterialMotion allows to switch between two layouts with a material motion animation.
Link copied to clipboard
fun <S> Transition<S>.MaterialMotion(transitionSpec: AnimatedContentTransitionScope<S>.() -> ContentTransform, modifier: Modifier = Modifier, pop: Boolean = false, contentAlignment: Alignment = Alignment.TopStart, contentKey: (targetState: S) -> Any? = { it }, content: @Composable AnimatedVisibilityScope.(targetState: S) -> Unit)
MaterialMotion allows to switch between two layouts with a material motion animation.
Link copied to clipboard
fun <T> MaterialSharedAxisX(targetState: T, forward: Boolean, modifier: Modifier = Modifier, slideDistance: Dp = MotionConstants.DefaultSlideDistance, label: String = "MaterialSharedAxisX", content: @Composable AnimatedVisibilityScope.(T) -> Unit)
MaterialSharedAxisX allows to switch between two layouts with a shared X-axis animation.
Link copied to clipboard
fun <T> MaterialSharedAxisY(targetState: T, forward: Boolean, modifier: Modifier = Modifier, slideDistance: Dp = MotionConstants.DefaultSlideDistance, label: String = "MaterialSharedAxisY", content: @Composable AnimatedVisibilityScope.(T) -> Unit)
MaterialSharedAxisY allows to switch between two layouts with a shared Y-axis animation.
Link copied to clipboard
fun <T> MaterialSharedAxisZ(targetState: T, forward: Boolean, modifier: Modifier = Modifier, label: String = "MaterialSharedAxisZ", content: @Composable AnimatedVisibilityScope.(T) -> Unit)
MaterialSharedAxisZ allows to switch between two layouts with a shared Z-axis animation.