lexakami/silverstripe-lottie
Composer 安装命令:
composer require lexakami/silverstripe-lottie
包简介
Add SVG animations into your web projects with ease using Lottie and bodymovin.js
README 文档
README
This module aims to streamline the processs to add SVG animations into your projects.
Uses Lottie and the bodymovin.js library to create lightweight SVG animations for the web, from a JSON file exported from After Effects using the Bodymovin extension.
Installation
composer require lexakami/silverstripe-lottie
Usage
You will need:
- A JSON file of the animation exported from After effects - Step by step walkthrough on creating compatible animations.
Create an animation under the Animations tab in the CMS and upload your JSON animation file.
Place in the template by using the Lottie include, specifying the name of the animation.
<% include Lottie Name="My Animation Name" %>
TODO
- Upgrade to be SS4 compatible
- Interactions (on click etc)
- Fallback to static image for non SVG supported browsers and devices
- Permissions on json files
- CMS JSON upload
- CMS editable attributes for each animation
- Accessibility
统计信息
- 总下载量: 1.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-03-15