WP Manifestindependent plugin directory
manifest / editor / lottie-lite

Lottie Lite WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

A lightweight LottieFiles extension for core image blocks

★ 37stars
9release downloads
7.6kcomposer installs
1.3.1latest · 7mo ago

Install

Download lottie-lite-1.3.1.zip From the 1.3.1 release on GitHub, Mar 16, 2026

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/humanmade/lottie-lite/releases/download/1.3.1/lottie-lite-1.3.1.zip

On Packagist as humanmade/lottie-lite:

composer require humanmade/lottie-lite
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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

  1. Download the plugin from the GitHub repository.
  2. Upload the plugin to your site's wp-content/plugins directory.
  3. Activate the plugin from the WordPress admin.

Development

Available npm Scripts

# Build production assets
npm run build

# Development watch mode
npm run start

# Format code
npm run format

# Linting
npm run lint:js        # Check JavaScript
npm run lint:css       # Check CSS
npm run lint:js:fix    # Fix JavaScript issues
npm run lint:css:fix   # Fix CSS issues

# Create distributable plugin ZIP
npm run plugin-zip

# Testing
npm run playground:start    # Start WordPress Playground server
npm run test:e2e           # Run end-to-end tests
npm run test:e2e:debug     # Run tests in debug mode
npm run test:e2e:watch     # Run tests in watch mode

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

  1. Start the WordPress Playground server (in one terminal):

    npm run playground:start
  2. Run the tests (in another terminal):

    npm run test:e2e

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:

const { test, expect } = require( '@playwright/test' );
const { Editor } = require( '@wordpress/e2e-test-utils-playwright' );

test.use( {
    editor: async ( { page }, use ) => {
        await use( new Editor( { page } ) );
    },
} );

test.describe( 'Lottie Lite Plugin', () => {
    test.beforeEach( async ( { page } ) => {
        await page.goto( '/wp-admin/' );
    } );

    test( 'should add Lottie Animation panel to image block', async ( {
        page,
        editor,
    } ) => {
        // Navigate to create new post
        await page.goto( '/wp-admin/post-new.php' );
        await page.getByRole( 'button', { name: 'Close' } ).click();
        await editor.openDocumentSettingsSidebar();

        // Insert an image block
        await page
            .locator( 'iframe[name="editor-canvas"]' )
            .contentFrame()
            .getByRole( 'button', { name: 'Add default block' } )
            .click();
        await page
            .locator( 'iframe[name="editor-canvas"]' )
            .contentFrame()
            .getByRole( 'document', { name: 'Empty block; start writing or' } )
            .fill( '/image' );
        await page
            .getByRole( 'option', { name: 'Image', exact: true } )
            .click();

        // Verify Lottie Animation panel exists
        await page
            .getByRole( 'button', { name: 'Lottie Animation Lottie Logo' } )
            .click();
        await expect( page.locator( '#tabs-3-settings-view' ) ).toContainText(
            'Lottie Animation'
        );
    } );
} );

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:

function doStuff(player) {
    // Do stuff with the player object
}

// Wait for the player to be ready as they may be loaded asynchronously,
// depending on the block's visibility and whether the image is lazy-loaded.
document.querySelectorAll( '[data-lottie]' ).forEach( ( element ) => {
    if ( element.lottie ) {
        doStuff( element.lottie );
    } else {
        element.addEventListener( 'lottieReady', () => {
            doStuff( element.lottie );
        } );
    }
} );

Full documentation for the DotLottie web player can be found here:

https://developers.lottiefiles.com/docs/dotlottie-player/dotlottie-web/

Releases

18 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
1.3.1 latest
Mar 16, 2026 7mo ago
lottie-lite-1.3.1.zip
4
Mar 16, 2026 7mo ago
lottie-lite-1.3.0.zip
5
Nov 21, 2025 11mo ago
tag only
—
Nov 19, 2025 11mo ago
tag only
—
Oct 15, 2025 1 year ago
tag only
—
Oct 21, 2024 2 years ago
tag only
—
Sep 25, 2024 2 years ago
tag only
—
Sep 17, 2024 2 years ago
tag only
—
Sep 13, 2024 2 years ago
tag only
—
Sep 13, 2024 2 years ago
tag only
—
Sep 11, 2024 2 years ago
tag only
—
Sep 10, 2024 2 years ago
tag only
—
Sep 10, 2024 2 years ago
tag only
—
Sep 5, 2024 2 years ago
tag only
—
Sep 5, 2024 2 years ago
tag only
—
Sep 5, 2024 2 years ago
tag only
—
Sep 2, 2024 2 years ago
tag only
—
Sep 2, 2024 2 years ago
tag only
—
A grade

Security

Lottie Lite 1.3.1 · audited by WP Registry

No security issues found.

Audited release
1.3.1
Findings
none
Worst severity
—
Content hash
074c0b38bb0407c09b5c3160…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.