# MaterialMotionScheme

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

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

```rust
enum MaterialMotionScheme
```

The two motion schemes published by Material Design.

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

## Members

- [`Standard`](#variant-standard)
- [`Expressive`](#variant-expressive)
- [`spring`](#function-spring)
- [`duration`](#function-duration)
- [`easing`](#function-easing)

<a id="variant-standard"></a>

### Standard

```rust
Standard
```

Subtle motion for utilitarian interfaces.

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

<a id="variant-expressive"></a>

### Expressive

```rust
Expressive
```

The Material 3 Expressive spring scheme.

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

<a id="function-spring"></a>

### spring

```rust
const fn spring(self: Self, role: MaterialMotionRole) -> MaterialSpringSpec
```

The exact unit-mass spring parameters of the upstream motion role.

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

<a id="function-duration"></a>

### duration

```rust
fn duration(self: Self, role: MaterialMotionRole, reduced_motion: bool) -> SignedDuration
```

The finite duration used to host this spring in FerroUI's duration-based transitions.

This is a settling-time adapter, not a Material duration token: the easing evaluates
the source spring in real seconds and the duration only bounds its imperceptible tail.
Install this value with the matching `Self::easing` resource.

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

<a id="function-easing"></a>

### easing

```rust
fn easing(self: Self, role: MaterialMotionRole, reduced_motion: bool) -> Easing
```

A real FerroUI easing for `DoubleTransition`, `BrushTransition`, shape transitions,
keyframe animations and compositor animations.

The adapter additionally reads `IPlatformSettings::animations_enabled` on the UI
thread. Its render-thread snapshot is immutable and contains no thread-local access.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Equivalent<K>`
- `CastableFrom<ST, Uninit, Uninit>`
- `CastableFrom<ST, Initialized, Initialized>`
- `Read<Exclusive, BecauseExclusive>`
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `Eq`
- `StructuralPartialEq`
- `PartialEq`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

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