croqo/lottie-plugin
Composer 安装命令:
composer require croqo/lottie-plugin
包简介
Lottie player: Lightweight, lossless scalable animations for your website
README 文档
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' %}}
统计信息
- 总下载量: 91
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-07-13
