pub struct MotionScheme {
pub shape: AnimationSpec,
pub color: AnimationSpec,
pub color_fast: AnimationSpec,
pub overlay: AnimationSpec,
pub spring: AnimationSpec,
pub expand: AnimationSpec,
pub layout: AnimationSpec,
}Expand description
Centralized animation specs for M3 motion design.
Fields§
§shape: AnimationSpecShape / size / bounds transitions (e.g., indicator position, elevation). M3 standard: 200 ms FastOutSlowIn.
color: AnimationSpecColor state transitions (e.g., label, tab text, selection). M3 standard: 150 ms FastOutSlowIn.
color_fast: AnimationSpecQuick color changes (e.g., checkbox fill, switch track, radio ring). M3 standard: 100 ms FastOutSlowIn.
overlay: AnimationSpecOverlay / popup enter‑exit (menus, dialogs, tooltips). M3 standard: 120 ms FastOutSlowIn.
spring: AnimationSpecSpring‑based positional animation (sheets, drawers, swipe‑to‑dismiss). M3 standard: gentle spring (ζ = 0.5, k = 200).
expand: AnimationSpecExpanding containers (search bar, docked search suggestions). M3 standard: 250 ms FastOutSlowIn.
layout: AnimationSpecLarge layout transitions (bottom sheet height, scaffold reflow). M3 standard: 300 ms EaseOut.
Trait Implementations§
Source§impl Clone for MotionScheme
impl Clone for MotionScheme
Source§fn clone(&self) -> MotionScheme
fn clone(&self) -> MotionScheme
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MotionScheme
Source§impl Debug for MotionScheme
impl Debug for MotionScheme
Auto Trait Implementations§
impl Freeze for MotionScheme
impl RefUnwindSafe for MotionScheme
impl Send for MotionScheme
impl Sync for MotionScheme
impl Unpin for MotionScheme
impl UnsafeUnpin for MotionScheme
impl UnwindSafe for MotionScheme
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more