Type Motion

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.

Constructors

DefaultMotion#

func DefaultMotion() Motion

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