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