LottieFiles / lottie-react

lottie web player as a react component
https://lottiefiles.com
MIT License
717 stars 80 forks source link

feat: use lottie-web light version #148

Closed vltansky closed 9 months ago

vltansky commented 9 months ago

Hello,

According to this issue https://github.com/airbnb/lottie-web/issues/1184 there is a "light" version.

Maybe i'm missing smth, but seems like its working, npm run build output: Before: CleanShot 2023-11-29 at 18 35 04@2x After: CleanShot 2023-11-29 at 18 35 10@2x

changeset-bot[bot] commented 9 months ago

⚠️ No Changeset found

Latest commit: db9a96d6767b6d33d436bb1d26e9057704b56ea2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

samuelOsborne commented 9 months ago

hi @vltansky Thanks for your PR. However we cant just switch out for the light version as this would break animations with Expressions using the current player. If you'd like the option to use a light player, we've implemented this option in @dotlottie/react-player