Animation and motion
Small owned transitions with explicit cancellation.
Enable
animation.enabled enables entry/update opacity transitions. duration is expressed in milliseconds from 0 to 2000. Increment revision to replay the animation. Final geometry always represents the applied data. A new update cancels its predecessor.
animation.ts
import type { ChartOptions } from '@neural-charts/web';
export const options: ChartOptions = {
"animation": {
"enabled": true,
"duration": 250,
"revision": 1
}
};Accessibility and lifecycle
prefers-reduced-motion disables transitions even when enabled is true. SSR creates no animations. Destroy cancels the active animation without retaining movement timers.