Skip to content

Releases: Gamote/lottie-react

v2.4.0

19 Feb 15:28
Compare
Choose a tag to compare

Changes

fix: expose the RendererType from lottie-web in the useLottie hook (#77) (#82 by @impaler)

chore: lottie-web was updated to v5.10.2
chore: .nvmrc set to v19.6.0
chore: update some packages

v2.3.1

23 Jun 01:24
Compare
Choose a tag to compare

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

15 Jun 09:28
Compare
Choose a tag to compare

Changes

chore: support for React v18.x.x was added (#58 by @michax)

v2.2.1

18 Jan 01:43
Compare
Choose a tag to compare

Changes

fix: useInteractivity adds another wrapping div that is not accessible to the consumer #42
fix: remove the container property from the LottieOptions type #47

v2.2.0

16 Jan 17:34
Compare
Choose a tag to compare

Changes

  • React v17 support was added (#29) (#41 by @musayann )
  • lottie-web library was updated to 5.8.1
  • prop-types peer-dependency was removed
  • dependencies were updated

v2.1.0

25 Sep 14:24
Compare
Choose a tag to compare

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 Lottie component can now receive properties defined by the HTMLDivElement type (#12 by @jamiehaywood)

v2.0.0

08 Jul 14:06
Compare
Choose a tag to compare

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

v1.2.2

12 Jun 11:58
Compare
Choose a tag to compare

Changes

  • fix: make the Lottie component's 'ref' property optional #3