cf::ui::core::MotionPresets¶
Static motion preset functions. More...
#include <cfmaterial_motion.h>
Public Functions¶
| Name | |
|---|---|
| MotionSpec | shortEnter() Short enter motion preset. |
| MotionSpec | shortExit() Short exit motion preset. |
| MotionSpec | mediumEnter() Medium enter motion preset. |
| MotionSpec | mediumExit() Medium exit motion preset. |
| MotionSpec | longEnter() Long enter motion preset. |
| MotionSpec | longExit() Long exit motion preset. |
| MotionSpec | stateChange() State change motion preset. |
| MotionSpec | rippleExpand() Ripple expand motion preset. |
| MotionSpec | rippleFade() Ripple fade motion preset. |
Detailed Description¶
Static motion preset functions.
Since: 0.1
Provides convenient access to predefined motion specifications following Material Design 3 motion principles.
Public Functions Documentation¶
function shortEnter¶
Short enter motion preset.
Exceptions:
- None
Return: MotionSpec with duration 200ms and EmphasizedDecelerate easing.
Since: 0.1
Note: None
Warning: None
Duration: 200ms, Easing: EmphasizedDecelerate Used for: Small elements entering the screen
function shortExit¶
Short exit motion preset.
Exceptions:
- None
Return: MotionSpec with duration 150ms and EmphasizedAccelerate easing.
Since: 0.1
Note: None
Warning: None
Duration: 150ms, Easing: EmphasizedAccelerate Used for: Small elements exiting the screen
function mediumEnter¶
Medium enter motion preset.
Exceptions:
- None
Return: MotionSpec with duration 300ms and EmphasizedDecelerate easing.
Since: 0.1
Note: None
Warning: None
Duration: 300ms, Easing: EmphasizedDecelerate Used for: Medium-sized elements entering the screen
function mediumExit¶
Medium exit motion preset.
Exceptions:
- None
Return: MotionSpec with duration 250ms and EmphasizedAccelerate easing.
Since: 0.1
Note: None
Warning: None
Duration: 250ms, Easing: EmphasizedAccelerate Used for: Medium-sized elements exiting the screen
function longEnter¶
Long enter motion preset.
Exceptions:
- None
Return: MotionSpec with duration 450ms and Emphasized easing.
Since: 0.1
Note: None
Warning: None
Duration: 450ms, Easing: Emphasized Used for: Large elements entering the screen
function longExit¶
Long exit motion preset.
Exceptions:
- None
Return: MotionSpec with duration 400ms and Emphasized easing.
Since: 0.1
Note: None
Warning: None
Duration: 400ms, Easing: Emphasized Used for: Large elements exiting the screen
function stateChange¶
State change motion preset.
Exceptions:
- None
Return: MotionSpec with duration 200ms and Standard easing.
Since: 0.1
Note: None
Warning: None
Duration: 200ms, Easing: Standard Used for: State layer animations
function rippleExpand¶
Ripple expand motion preset.
Exceptions:
- None
Return: MotionSpec with duration 400ms and Standard easing.
Since: 0.1
Note: None
Warning: None
Duration: 400ms, Easing: Standard Used for: Ripple effect expansion
function rippleFade¶
Ripple fade motion preset.
Exceptions:
- None
Return: MotionSpec with duration 150ms and Linear easing.
Since: 0.1
Note: None
Warning: None
Duration: 150ms, Easing: Linear Used for: Ripple effect fade out
Updated on 2026-03-09 at 10:14:00 +0000