How devikex/js-animationcontroller works
JS-AnimationController runs user-defined JSON animation trees against selected page elements, supporting legacy and newer formats, chained animation steps, CSS animation classes, delays, fades, scrolling, and dynamic values. The sampled source confirms the controller’s entry points, type dispatch, animation helpers, and value parsing; traversal and selector-resolution internals are not shown, so their detailed wiring is omitted.
Main entry points: animationController.js Effect handlers
Components 10
Animation runtime
- Controller entry points
animationController.js - Format traversal
animationController.js - Type dispatch
animationController.js - Effect handlers
animationController.js
Animation definitions
- JSON animation tree
- Animation classes
animationController.js - Dynamic values
animationController.js
Browser effects
- Selected elements
- jQuery effects
Other components
- Animation author
Connections 10
- Animation author → JSON animation tree: defines
- JSON animation tree → Controller entry points: configures
- Controller entry points → Format traversal: starts
- Format traversal → Type dispatch: processes steps
- Type dispatch → Effect handlers: dispatches types
- Effect handlers → Animation classes: resolves styles
- Effect handlers → Dynamic values: parses parameters
- Effect handlers → jQuery effects: runs effects
- jQuery effects → Selected elements: animates
- Effect handlers → Format traversal: continues steps