Gathering detailed insights and metrics for lottie-react
Gathering detailed insights and metrics for lottie-react
Gathering detailed insights and metrics for lottie-react
Gathering detailed insights and metrics for lottie-react
A lightweight React library for rendering complex After Effects animations in real time using Lottie.
npm install lottie-react
Typescript
Module System
Node Version
NPM Version
TypeScript (86.45%)
JavaScript (13.55%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
893 Stars
172 Commits
67 Forks
5 Watchers
4 Branches
10 Contributors
Updated on Jul 13, 2025
Latest Version
2.4.1
Package Id
lottie-react@2.4.1
Unpacked Size
228.17 kB
Size
51.04 kB
File Count
13
NPM Version
10.9.2
Node Version
22.13.0
Published on
Jan 22, 2025
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
1
46
This project is meant to give developers full control over Lottie instance with minimal implementation by wrapping lottie-web in a Component or Hook that can be easily used in React applications.
Make sure you have the peer-dependencies installed: react
and react-dom
.
Note: This library is using React Hooks so the minimum version required for both react and react-dom is v16.8.0.
Install lottie-react
using yarn
1yarn add lottie-react
or npm
1npm i lottie-react
1import React from "react"; 2import Lottie from "lottie-react"; 3import groovyWalkAnimation from "./groovyWalk.json"; 4 5const App = () => <Lottie animationData={groovyWalkAnimation} loop={true} />; 6 7export default App;
1import React from "react"; 2import { useLottie } from "lottie-react"; 3import groovyWalkAnimation from "./groovyWalk.json"; 4 5const App = () => { 6 const options = { 7 animationData: groovyWalkAnimation, 8 loop: true 9 }; 10 11 const { View } = useLottie(options); 12 13 return <>{View}</>; 14}; 15 16export default App;
Checkout the documentation at https://lottiereact.com for more information and examples.
Run the tests using the yarn test
command.
1-----------------------------|---------|----------|---------|---------|------------------- 2File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 3-----------------------------|---------|----------|---------|---------|------------------- 4All files | 100 | 100 | 100 | 100 | 5 components | 100 | 100 | 100 | 100 | 6 Lottie.ts | 100 | 100 | 100 | 100 | 7 hooks | 100 | 100 | 100 | 100 | 8 useLottie.tsx | 100 | 100 | 100 | 100 | 9 useLottieInteractivity.tsx | 100 | 100 | 100 | 100 | 10-----------------------------|---------|----------|---------|---------|-------------------
Any questions or suggestions? Use the Discussions tab. Any issues? Don't hesitate to document it in the Issues tab, and we will do our best to investigate it and fix it. Any solutions? You are very welcomed to open a pull request.
👩💻
v3
is under development and is planning to bring a lot of features and improvements. But unfortunately, at the moment all the maintainers are super busy with work related projects. You can check out the progress under thev3
branch. And of course, you are encouraged to contribute. :)
Thank you for investing your time in contributing to our project! ✨
lottie-react is available under the MIT license.
Thanks to David Probst Jr for the animations used in the examples.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 4/15 approved changesets -- score normalized to 2
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
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
53 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