# motion

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-themes-material/motion/

**module** · [`ferroui-themes-material`](/docs/0.5.0/api/ferroui-themes-material/) · v0.5.0

```rust
module motion
```

Material 3 Expressive motion, connected to FerroUI's transition and compositor APIs.

The spring constants follow AndroidX Material3 1.5.0-beta02, commit
`e4d933c98df7baa7ea2b83eea6e086915961e0ff`, `ExpressiveMotionTokens.kt` and
`StandardMotionTokens.kt` (Copyright The Android Open Source Project, Apache-2.0).
The analytical evaluator and the FerroUI adapters are native Rust implementations.

Spatial motion may overshoot. Effects motion is critically damped: use it for colors,
opacity and the button's pressed shape. In particular, the upstream button intentionally
uses `DefaultEffects`, while the switch thumb uses `FastSpatial`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/motion.rs#L4)

## Contents

- [`MaterialMotionScheme`](/docs/0.5.0/api/ferroui-themes-material/motion/enum-materialmotionscheme/) — enum
- [`MaterialMotionRole`](/docs/0.5.0/api/ferroui-themes-material/motion/enum-materialmotionrole/) — enum
- [`MaterialSpringSample`](/docs/0.5.0/api/ferroui-themes-material/motion/struct-materialspringsample/) — struct
- [`MaterialSpringSpec`](/docs/0.5.0/api/ferroui-themes-material/motion/struct-materialspringspec/) — struct
- [`MaterialSpringState`](/docs/0.5.0/api/ferroui-themes-material/motion/struct-materialspringstate/) — struct
- [`MaterialSpringEasing`](/docs/0.5.0/api/ferroui-themes-material/motion/struct-materialspringeasing/) — struct

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
