API Reference
Comprehensive API reference for dotlottie-js, covering DotLottie V1 and V2 classes, and standalone utility functions.
dotlottie-js API Reference
The API Reference for dotlottie-js provides detailed information about the public classes, methods, and utility functions for creating, manipulating, and exporting .lottie files.
The reference includes:
The
DotLottie(V2) Class: The primary class for working with V2 format.lottiefiles. Includes constructor, static loading methods, and instance methods for managing animations, assets, themes, state machines, and exporting.The
DotLottieV1Class: For users explicitly creating or managing V1 format.lottiefiles.Standalone Utility Functions: A collection of publicly exported functions for tasks like instance creation, conversion, loading, validation, data extraction, and more.
Structure
This API reference is organized as follows:
DotLottie (V2) Class: Details the main class for V2 operations.
DotLottieV1 Class: Details the class for V1 operations.
Standalone Utilities: Describes various utility functions, categorized as:
Navigate using the links above or proceed sequentially.
Next up: DotLottie (V2) Class API