visualbuilder/filament-lottie
Add Lottie animations to Filament 5 panels via a schema component and a Blade component. Bundles @lottiefiles/dotlottie-wc, auto-registers assets (optional), supports defaults via config/plugin, and offers autoplay/loop/speed/size/triggers and reduced-motion support.
<x-lottie />) for non-schema contexts (e.g., marketing pages, dashboards), expanding use cases beyond admin panels.vendor:publish) suffices for basic usage. No database migrations or complex setup required.auto_register_assets). For performance-critical apps, manual asset registration is supported.@lottiefiles/dotlottie-wc (Web Components-based Lottie player) via npm, avoiding conflicts with existing frontend tooling (e.g., Vite, Webpack).@lottiefiles/dotlottie-wc (vulnerability patched in 5.0.0-beta.2). Risk mitigated by:
composer.json.npm update @lottiefiles/dotlottie-wc).trigger('visible') or load-on-request.prefers-reduced-motion by default, but custom triggers (e.g., event:NAME) may bypass this. Requires UX testing for accessibility compliance.mount) or interactive states (e.g., click)? This dictates trigger selection.dotlottie-wc.<lottie-player> Web Components, compatible with modern SPAs (e.g., Inertia.js) or static sites.auto_register_assets = false).Lottie::make() in resource forms/tables.<img> tags with <x-lottie /> in marketing pages.vendor:publish --tag=lottie-config) to set global defaults (e.g., default_size, respect_reduced_motion).LottiePlugin::make().visualbuilder/filament-lottie:4.x branch.dotlottie-wc supports modern browsers (Chrome 55+, Firefox 60+, Safari 11+). Test fallbacks for older browsers if needed.Lottie::make().create view of a Page resource.event:NAME triggers for custom interactions (e.g., "play on form submission").visualbuilder/filament-lottie for Filament 5 compatibility updates.npm run build) if @lottiefiles/dotlottie-wc major versions are updated.welcome-v2.lottie) to avoid cache conflicts.docs/animations.md file for developer handoffs.config/lottie.php to avoid per-panel inconsistencies.resources/views/vendor/filament/... for rendered output.<x-lottie> → <lottie-player>).onComplete to log events or implement a global error handler for dotlottie-wc./lottie/welcome.lottie) or mix()/vite() helpers for local assets.prefers-reduced-motion: reduce in browser dev tools.trigger('visible') for offscreen animations or implement Intersection Observer.README.md within the Filament panel codebase.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Lottie file 404 | Broken animation placeholder | Use onError callback or static fallback (e.g., SVG). |
| JS/CSS auto-registration conflict | Rendering issues in Filament panels | Disable auto-register and manually include assets in resources/js/app.js. |
dotlottie-wc version mismatch |
Animations not playing | Pin @lottiefiles/dotlottie-wc version in package.json. |
| Reduced motion override | Accessibility violations | Enforce respectReducedMotion(true) globally and test with prefers-reduced-motion. |
| Large asset bundle | Slow initial load | Lazy-load assets or split into micro-bundles per panel. |
How can I help you explore Laravel packages today?