rubberhose-lottie
Demo | Installation | Usage | API | Examples |
---|
Vue component to easily make any Lottie file with Rubberhose fully interactive:
Installation
npm i rubberhose-lottie
Usage
<!-- Inside a .vue file -->
API
Props
Property | Type | Default | Description |
---|---|---|---|
animation-data | Object | null | The parsed Lottie JSON file to use |
controllers | Array | null | Array of slider controls to control reactively |
draggable | Array | null | Array of layers which should be draggable |
clickable | Array | null | Array of layers which should be clickable |
locked | Array | null | Array of layer names which should have no user interaction |
Events
None so far, but will be wanting to add soon
Event | Value | Description |
---|---|---|
@ |
Examples
Check out this demo site for live examples.
The controllers
prop is an array expecting a layer
, name
(of Slider Expression Control on layer), and value
(numeric):