croqo / lottie-plugin
Lottie player: Lightweight, lossless scalable animations for your website
Installs: 88
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 1
Type:october-plugin
Requires
- composer/installers: ~1.0
This package is auto-updated.
Last update: 2025-06-15 11:14:34 UTC
README
This October CMS plugin allows to add Lottie animations on your website with ease.
🤔 What is Lottie? @lottiefiles.com
Component Player
Use this code in INI section to inject JS player into current page/partial/layout.
[lottie]
When it's done, you can use Lottie player as many times as you want with different values of url property.
-
url
HTTP link to lottie animation json.
Next example code will generate two animations following one-by-one:
{% component 'lottie' url='https://path.to/file1.json' %} {% component 'lottie' url='https://path.to/file2.json' %}
-
look
Lottie player CSS preset
{% component 'lottie' url='https://path.to/file1.json' look='image' %}} {% component 'lottie' url='https://path.to/file2.json' look='wallpaper' %}}
-
aspect ratio
preserveAspectRatio option (rendererSettings)
{% component 'lottie' url='https://path.to/file1.json' ratio='xMidYMid slice' %}} {% component 'lottie' url='https://path.to/file2.json' ratio='xMidYMid meet' %}}