Silverstripe Lottie Animation
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