Skip to main content
cngx-src documentation

injectMotion

Functioncore/themingv0.1.0

projects/core/theming/motion.ts

Description#

Read the app-wide motion signal in an injection context. The returned signal is writable, so injectMotion().set('reduced') collapses motion across the whole document reactively; set('auto') hands control back to the OS preference.

Signature#

injectMotion()

Returns#

WritableSignal