AnimationConfig
Grid-wide animation configuration. Controls global animation behavior - individual plugins define their own animation styles. Duration and easing values set corresponding CSS variables on the grid element.
Example
Section titled “Example”// Enable animations regardless of system preferencesgrid.gridConfig = { animation: { mode: 'on', duration: 300, easing: 'cubic-bezier(0.4, 0, 0.2, 1)', },};
// Disable all animationsgrid.gridConfig = { animation: { mode: 'off' },};
// Respect user's reduced-motion preference (default)grid.gridConfig = { animation: { mode: 'reduced-motion' },};Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
mode? | AnimationMode | Global animation mode. |
duration? | number | Default animation duration in milliseconds. Sets --tbw-animation-duration CSS variable. |
easing? | string | Default easing function. Sets --tbw-animation-easing CSS variable. |
Property Details
Section titled “Property Details”Default: 'reduced-motion'
duration
Section titled “duration”Default: 200
easing
Section titled “easing”Default: 'ease-out'
See Also
Section titled “See Also”AnimationModefor mode options
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