类型 Motion

API 文档由 Go 源码生成,内容为英文。

type Motion struct {
	Duration time.Duration
	Easing   Easing
}

Motion is one timed state change. A zero Duration is an instant change, so hand-built themes that omit motion tokens stay static rather than animated.

构造函数

DefaultMotion#

func DefaultMotion() Motion

DefaultMotion returns the 150ms standard-curve transition shadcn components use for color, position, and opacity changes of a control.