Skip to content

AnimationMode

Animation behavior mode.

  • true or 'on': Animations always enabled
  • false or 'off': Animations always disabled
  • 'reduced-motion': Respects prefers-reduced-motion media query (default)
type AnimationMode = boolean | "on" | "off" | "reduced-motion"
// Force animations on (ignore system preference)
grid.gridConfig = { animation: { mode: 'on' } };
// Disable all animations
grid.gridConfig = { animation: { mode: false } };
// Respect user's accessibility settings (default)
grid.gridConfig = { animation: { mode: 'reduced-motion' } };
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt