Docs/Functions/MotionGlobalConfig

MotionGlobalConfig

MotionGlobalConfig is a mutable object for app-wide runtime switches. Set it once during startup; new animations read the latest values.

import { MotionGlobalConfig } from 'motion-solidjs'

MotionGlobalConfig.skipAnimations = true // run animations instantly (tests, SSR)
MotionGlobalConfig.useManualTiming = true // drive frames yourself for deterministic specs

Fields

FieldTypeNotes
skipAnimationsbooleanAll animations resolve instantly
useManualTimingbooleanDisables the shared rAF loop
instantAnimationsbooleanForce instant on first render

See also: MotionConfig for declarative provider-scoped overrides.