A modular and configurable JavaFX component for rendering Lottie animations using a WebView. This project demonstrates best practices in object-oriented design and adheres to SOLID principles, making it flexible, testable, and easy to extend.
- Modular Architecture: Clear separation of concerns across multiple classes (AnimationWebView, HtmlContentBuilder, ResourceLoader, TemplateProcessor).
- Dynamic HTML Template Processing: Uses a dedicated
TemplateProcessorto replace placeholders in HTML templates without hardcoding. - Flexible Configuration: Easily update animation parameters at runtime via
LottieAnimationConfig. - Custom Resource Loading: Abstracts resource loading using the
ResourceLoaderinterface, allowing for custom implementations. - Logging & Error Handling: Integrated logging with SLF4J for better traceability and debugging.
- Java: JDK 8 or higher
- JavaFX: JavaFX SDK (if using JDK versions that do not bundle JavaFX)
- SLF4J: For logging (you may choose your preferred SLF4J binding)
Clone the repository and build the project using your preferred build tool.
git clone [https://github.com/your-username/javafx-lottie-animation-webview.git](https://github.com/FoxesWorld/LVM.git)
cd LVM