Releases: Gamote/lottie-react
v2.4.1
v2.4.0
v2.3.1
Changes
fix: animation plays at least twice when loop: false when initialSegment doesn't have a value (#48)
fix: memory leak when un-mounting the animation (#63)
fix: useLottieInteractivity hook is loaded conditionally
fix: loop property is not propagated to Lottie (#51)
fix: loop type doesn't accept a number (#30) (#60 by @mattvague)
fix: reference to the animation instance is not removed on destroy() (#57 by @michax)
chore: lottie-web was updated to v5.9.4
chore: dev dependencies for react and react-dom was updated to v18.2.0
chore: update the ESLint + Prettier configuration + some npm package
chore: type of animationData property was updated from any to unknown
chore: README.md file was updated
v2.3.0
v2.2.1
v2.2.0
v2.1.0
Interactivity support was added (#9)
Thanks to @shelooks16, in this version there is a new feature called Interactivity. This feature will allow you to change the animation state by using the cursor or by scrolling.
Please check the documentation for more informations and examples.
Changes
- lottie-web library was updated to 5.7.3
- The
Lottiecomponent can now receive properties defined by theHTMLDivElementtype (#12 by @jamiehaywood)
v2.0.0
Breaking changes
The ref property used to export the interaction methods from the Lottie component was renamed in lottieRef.
This way we can use the ref property to allow the user to control the animation container.
Changes
- Typescript fully implemented by @vdh
- Tests were added
- README.md and docs were updated
- Code refactoring