@mocanvas/mocanvas · function

ReduceMotionAttribute

declare function ReduceMotionAttribute(): null

Puts data-reduce-motion on the editor's container while motion is reduced, so ui.css can switch off the chrome's transitions.

An attribute rather than a class because the container belongs to the host: adding to className would fight whatever the app set there.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.