Gathering detailed insights and metrics for inferno-lottie
Gathering detailed insights and metrics for inferno-lottie
Gathering detailed insights and metrics for inferno-lottie
Gathering detailed insights and metrics for inferno-lottie
Render After Effects animations on Inferno based on lottie-web
npm install inferno-lottie
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
136 Commits
1 Watchers
2 Branches
1 Contributors
Updated on Sep 18, 2018
Latest Version
1.1.0
Package Id
inferno-lottie@1.1.0
Unpacked Size
888.72 kB
Size
126.09 kB
File Count
11
NPM Version
6.1.0
Node Version
10.6.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
bodymovin is Adobe After Effects plugin for exporting animations as JSON, also it provide bodymovin.js for render them as svg/canvas/html.
We currently support solids, shape layers, masks, alpha mattes, trim paths, and dash patterns. And we’ll be adding new features on a regular basis.
You can go forward, backward, and most importantly you can program your animation to respond to any interaction.
Bundle vector animations within your app without having to worry about multiple dimensions or large file sizes. Alternatively, you can decouple animation files from your app’s code entirely by loading them from a JSON API.
Learn more › http://airbnb.design/lottie/
Looking for lottie files › https://www.lottiefiles.com/
Import pinjump.json.json as animation data
1import {Component} from 'inferno'; 2import Lottie from 'inferno-lottie'; 3import * as animationData from './pinjump.json' 4 5export default class LottieControl extends Component { 6 7 constructor(props) { 8 super(props); 9 this.state = {isStopped: false, isPaused: false}; 10 } 11 12 render() { 13 const buttonStyle = { 14 display: 'block', 15 margin: '10px auto' 16 }; 17 18 const defaultOptions = { 19 loop: true, 20 autoplay: true, 21 animationData: animationData, 22 rendererSettings: { 23 preserveAspectRatio: 'xMidYMid slice' 24 } 25 }; 26 27 return <div> 28 <Lottie options={defaultOptions} 29 height={400} 30 width={400} 31 isStopped={this.state.isStopped} 32 isPaused={this.state.isPaused}/> 33 <button style={buttonStyle} onClick={() => this.setState({isStopped: true})}>stop</button> 34 <button style={buttonStyle} onClick={() => this.setState({isStopped: false})}>play</button> 35 <button style={buttonStyle} onClick={() => this.setState({isPaused: !this.state.isPaused})}>pause</button> 36 </div> 37 } 38} 39
The <Lottie />
Component supports the following components:
options required
the object representing the animation settings that will be instantiated by bodymovin. Currently a subset of the bodymovin options are supported:
loop options [default:
false
]autoplay options [default:
false
]animationData required
rendererSettings required
width optional [default: 100%
]
pixel value for containers width.
height optional [default: 100%
]
pixel value for containers height.
eventListeners optional [default: []
]
This is an array of objects containing a eventName
and callback
function that will be registered as eventlisteners on the animation object. refer to bodymovin#events where the mention using addEventListener, for a list of available custom events.
example:
1eventListeners=[ 2 { 3 eventName: 'complete', 4 callback: () => console.log('the animation completed:'), 5 }, 6]
Your contributions and suggestions are heartily welcome.
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
66 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More