定制 croqo/lottie-plugin 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.

og-image

🤔 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

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-07-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固