androidx.compose.material3

MotionSchemeSince 1.10

Interface

No hand-written docs yet.

A motion scheme provides all the FiniteAnimationSpecs for a MaterialTheme.

interface MotionScheme

How to get one

Ready-made values and functions that return it

Used by

Parameters that take a MotionScheme.

Functions

defaultSpatialSpec

fun <T> defaultSpatialSpec(): FiniteAnimationSpec<T>

A default spatial motion FiniteAnimationSpec.

fastSpatialSpec

fun <T> fastSpatialSpec(): FiniteAnimationSpec<T>

A fast spatial motion FiniteAnimationSpec.

slowSpatialSpec

fun <T> slowSpatialSpec(): FiniteAnimationSpec<T>

A slow spatial motion FiniteAnimationSpec.

defaultEffectsSpec

fun <T> defaultEffectsSpec(): FiniteAnimationSpec<T>

A default effects motion FiniteAnimationSpec.

fastEffectsSpec

fun <T> fastEffectsSpec(): FiniteAnimationSpec<T>

A fast effects motion FiniteAnimationSpec.

slowEffectsSpec

fun <T> slowEffectsSpec(): FiniteAnimationSpec<T>

A slow effects motion FiniteAnimationSpec.

standard

fun standard(): MotionScheme

Returns a standard Material motion scheme.

expressive

fun expressive(): MotionScheme

Returns an expressive Material motion scheme.

Library docs

A motion scheme provides all the FiniteAnimationSpecs for a MaterialTheme.

Motion schemes are designed to create a harmonious motion for components in the app.

There are two built-in schemes, a standard and an expressive, that can be used as-is or customized.

You can customize the motion scheme for all components in the MaterialTheme.