How juliangarnier/anime works
Anime.js is a JavaScript animation library. A user calls its public API to configure an animation or timeline, which is advanced by the engine and rendered onto CSS, SVG, DOM attributes, or JavaScript-object targets. The tree and README establish additional capabilities such as easing, dragging, text splitting, SVG motion paths, WAAPI, layout, scopes, and Three.js adapters. Sampled source confirms the engine’s tick loop and easing parser; links among other unsampled subsystems are shown only where the public capability or exports support them.
Main entry points: src/index.js Public API · render.js Value rendering · engine.js Engine · animation/index.js Animation
Components 21
Animation API
- Public API
src/index.js - Animation
src/animation/index.js - Timeline
src/timeline/index.js - Animatable
src/animatable/index.js
Timing Runtime
- Timer
src/timer/index.js - Engine
src/engine/engine.js - Easing functions
src/easings/index.js
Rendering Targets
- Value rendering
src/core/render.js - Core value handling
src/core/values.js - Target resolution
src/core/targets.js - Three.js adapter
src/adapters/three/index.js
Interaction Tools
- Draggable
src/draggable/index.js - Scroll events
src/events/index.js - Animation scopes
src/scope/index.js - Auto layout
src/layout/index.js
Animation Extensions
- SVG tools
src/svg/index.js - Text tools
src/text/index.js - WAAPI
src/waapi/index.js
Other components
- Library user
- DOM and JS targets
- Three.js objects
Connections 26
- Library user → Public API: calls
- Public API → Animation: exports
- Public API → Timeline: exports
- Public API → Animatable: exports
- Public API → Timer: exports
- Public API → Draggable: exports
- Public API → Scroll events: exports
- Public API → Animation scopes: exports
- Public API → Auto layout: exports
- Public API → Easing functions: exports
- Public API → SVG tools: exports
- Public API → Text tools: exports
- Public API → WAAPI: exports
- Animation → Engine: scheduled by
- Timeline → Engine: scheduled by
- Timer → Engine: scheduled by
- Engine → Value rendering: ticks
- Value rendering → Core value handling: computes values
- Value rendering → Target resolution: resolves targets
- Target resolution → DOM and JS targets: selects
- Value rendering → Easing functions: uses easing
- Three.js adapter → Three.js objects: adapts
- Draggable → Animatable: animates
- SVG tools → DOM and JS targets: operates on
- Text tools → DOM and JS targets: transforms
- WAAPI → DOM and JS targets: animates