Lottie and dotLottie animations for Joomla 6. Browse animations at https://lottiefiles.com.
The package contains:
- Joomla 6.0 or later
- PHP 8.3 or later
Version 2.x does not install on Joomla 4 or 5; use 1.x there. Updating from 1.x converts existing module settings automatically.
.lottieand.jsonfiles, from the Media Manager or any URL- Play automatically, when scrolled into view, on hover (stop, pause or reverse on leave), on click, or linked to page scroll
- Frame ranges, named markers and
.lottiethemes - Play/pause button, alternative text or decorative mode, and
prefers-reduced-motionsupport - Responsive sizing with an aspect ratio and fit options
- Optional link around each animation
- The player (dotlottie-wc, about 85 KB plus a 1.2 MB WASM engine) loads only when an animation nears the viewport, and is served from your own site, with no CDN requests
To pick .lottie and .json files in the Media Manager, open System → Media → Options and add:
json,lottieto Legal Extensions and Legal Document Extensionsapplication/json,application/zipto Legal MIME Types
URLs work without this. For the best performance, make sure the server sends
.wasm files as application/wasm (it still works otherwise, just slower).
{lottie src="images/hello.lottie" alt="Waving hand" trigger="viewport" loop="1"}
Optional attributes: trigger (autoplay, viewport, hover, click, scroll), hover-out
(stop, pause, reverse), loop, controls, reduced-motion, decorative (1/0), speed,
mode (forward, reverse, bounce, reverse-bounce), width, height, ratio (e.g. 16/9),
fit (contain, cover, fill, fit-width, fit-height, none), background (#RRGGBB),
segment (e.g. 10-60), marker, theme, link, target (_blank). Write a double
quote inside a value as ".
- Module wrapper:
templates/<template>/html/mod_pankylottiefiles/default.php - Single player, used by the module and the plugin:
templates/<template>/html/layouts/pankylottie/player.php
pkg_pankylottie.xml Package manifest (update server, child uninstall blocked)
script.php Package installer: Joomla/PHP checks, enables the plugins
build.ps1 Builds dist/pkg_pankylottie-<version>.zip and update.xml
update.xml Update server manifest (generated by build.ps1)
language/ Package strings
mod_pankylottiefiles/
script.php 1.x settings migration
services/provider.php
src/Dispatcher/Dispatcher.php
src/Helper/PlayerHelper.php Option validation and rendering, shared with the plugin
src/Field/LottiepreviewField.php
layouts/pankylottie/player.php
tmpl/default.php
media/ Installed to media/mod_pankylottiefiles
js/pankylottie.js Lazy loading, triggers, controls
js/pankylottie-preview.js Module editor preview
js/pankylottie-editor-button.js
js/dotlottie-wc.js @lottiefiles/dotlottie-wc 0.9.28 (MIT)
js/dotlottie-player.wasm @lottiefiles/dotlottie-web 0.80.0 (MIT)
plg_content_pankylottie/
plg_editors-xtd_pankylottie/
