跳转至

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

struct cf::ui::core::MotionPresets;

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

static inline MotionSpec 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

static inline MotionSpec 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

static inline MotionSpec 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

static inline MotionSpec 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

static inline MotionSpec 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

static inline MotionSpec 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

static inline MotionSpec 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

static inline MotionSpec 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

static inline MotionSpec 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