@sk39/lottie-files
v0.0.1
Published
lottie-files
Downloads
66
Readme
@sk39/lottie-files
lottie-files
Install
npm install @sk39/lottie-files
Usage
import React, {Component} from 'react'
import Lottie from "react-lottie";
import animationData from '@sk39/lottie-files/dist/success-icon.json'
const options = {
loop: true,
autoplay: true,
animationData,
rendererSettings: {
preserveAspectRatio: "xMidYMid slice"
}
}
export default class App extends Component {
render() {
return (
<Lottie options={options} height={260} width={260}/>
)
}
}
License
MIT © sk39