DefaultMotion#
func DefaultMotion() MotionDefaultMotion returns the 150ms standard-curve transition shadcn components use for color, position, and opacity changes of a control.
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() MotionDefaultMotion returns the 150ms standard-curve transition shadcn components use for color, position, and opacity changes of a control.