Download the PHP package humanmade/lottie-lite without Composer
On this page you can find all versions of the php package humanmade/lottie-lite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download humanmade/lottie-lite
More information about humanmade/lottie-lite
Files in humanmade/lottie-lite
Package lottie-lite
Short Description A lightweight Lottie Animations Extension for WordPress
License GPL-2.0-or-later
Informations about the package lottie-lite
Lottie Lite
Adds support for Lottie animations as an enhancement to the following blocks:
- Core image block
- Core cover block
- Core media & text block
Allows overlaying or replacing the image with an animation.
🎮 Try it on WordPress Playground
Installation
- Download the plugin from the GitHub repository.
- Upload the plugin to your site's
wp-content/pluginsdirectory. - Activate the plugin from the WordPress admin.
Development
Available npm Scripts
The build process uses @wordpress/scripts to compile JavaScript and CSS from src/*.js into the build/ directory.
Testing
The plugin uses Playwright for end-to-end testing with WordPress Playground.
Running Tests Locally
-
Start the WordPress Playground server (in one terminal):
- Run the tests (in another terminal):
The Playground environment runs on http://localhost:9400 with WordPress 6.8, PHP 8.3, and auto-login enabled.
CI Testing
Tests run automatically on GitHub Actions using a matrix of:
- PHP versions: 8.3, 8.4
- WordPress versions: 6.7, 6.8, latest
This ensures compatibility across multiple PHP and WordPress versions.
Adding New Tests
Tests are located in the tests/e2e/ directory. Here's an example test:
For more information on writing Playwright tests, see:
Pull Request Previews
When you open or update a pull request, a workflow automatically:
- Builds the plugin with your changes
- Generates a unique WordPress Playground link
- Adds a "Try it in Playground" button to your PR description
This allows reviewers to test your changes directly in their browser without any local setup required.
Advanced Usage
The plugin exposes the DotLottie web player object on the enhanced blocks. This allows you to interact with the player and control the animation.
To access the player object, you can use the following JavaScript code:
Full documentation for the DotLottie web player can be found here:
https://developers.lottiefiles.com/docs/dotlottie-player/dotlottie-web/