Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Filament Lottie Laravel Package

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.

View on GitHub
Deep Wiki
Context7

visualbuilder/filament-lottie

Lottie animation Schema component and Blade component for Filament 5 panels.

Bundles @lottiefiles/dotlottie-wc and exposes it as:

  • A Schema component (Visualbuilder\Lottie\Components\Lottie) usable inside any ->schema([…]).
  • A Blade component (<x-lottie />) for views outside the Filament Schema system.

Install

composer require visualbuilder/filament-lottie

The dist JS and CSS are auto-registered on every Filament page. Disable via config('lottie.auto_register_assets', false) and register the assets yourself if you want load-on-request behaviour.

Configure (optional)

php artisan vendor:publish --tag=lottie-config

config/lottie.php exposes default_size, default_loop, default_autoplay, respect_reduced_motion, and auto_register_assets.

Panel-level defaults (optional)

use Visualbuilder\Lottie\LottiePlugin;

->plugins([
    LottiePlugin::make()
        ->defaultSize('80px')
        ->defaultRespectReducedMotion(true),
])

API

use Visualbuilder\Lottie\Components\Lottie;

Lottie::make('welcome')
    ->src('lottie/welcome.lottie')
    ->autoplay()                 // default true
    ->loop(false)                // default false (play once)
    ->speed(1.0)
    ->size('120px')              // shorthand → width + height
    ->trigger('mount')           // mount | click | hover | visible | event:NAME
    ->onComplete('event:NAME')   // dispatch a window event when animation finishes
    ->respectReducedMotion();    // default true
<x-lottie src="lottie/welcome.lottie" autoplay :loop="false" size="120px" />

Development

npm install
npm run build         # bundle resources/js/index.js → resources/dist/
composer test

Branches

  • 5.x — Filament 5 / Livewire 4 (this branch).
  • 4.x — Filament 4 / Livewire 3.

License

MIT.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity