New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Difference between lottie_light.js and lottie.js? #929
Comments
lottie_light has only the svg renderer and doesn't support expressions. |
So will I get given |
@simeyla it should work fine but animations won't render correctly if they have expressions or effects. |
AFAICT react-lottie always uses the svg renderer and (at least in my case) the animations don't have expressions. By importing the light version of of lottie-web one can save around 100KB (minified). airbnb/lottie-web#929
@bodymovin hi, what is support expressions exactly? can i use lottie_light.min by interactivity? |
Hi @honeyamin, I'm using Bodymovin's lottie_light.js with scroll interactivity here and it works just fine for me :) |
nice job bro @Ricardo0621 |
Adding to this stack here. I'm currently making Lottie animations for a client who has to use Lottie Lite due to security issues (not 100% sure why but it's a site that deals with money so I can understand the concern). Excluding the issue of expressions we are hitting snags of some animations 'sticking' in Lottie Lite that don't in the normal player. I wonder if anyone else has had these? To be honest they are quite complicated animations with embedded comps so that might be the cause but I'm stripping out the AE composition and trying to figure out by trial and error the things that trigger the sticking. Oh also we are experiencing a strange one-pixel flashing line on either side too. Grrrr.. It's such a glorious piece of software but frustrating I can't get these things to work. |
@jimlefevre hi, can you share the .aep of the animation that's failing so I can check it? |
Hey @bodymovin, Thanks for the offer, unfortunately I can't share as it's for a client with a Do Not Share attitude BUT...! Having spent days doing multiple tests of deleting various things and re-rendering I managed to stop it sticking - it felt like it was a series of embedded comps that had 'fill' effects in them which I brought up into one of the higher level comps (as it happened the 'fill' effect was unnecessary anyway as I could have just changed the stroke colour which I ended up doing manually). But the single line pixel flashing was still there on both sides. Gah. I tried loads of variations of solutions including adding blocks of colour of the top and none of them worked HOWEVER....! Literally as I was about to give up I thought I'd try put that whole main composition in a new composition and hey presto.... when I rendered it the flashing lines had gone!! Anyone with this issue I'd suggest the same and if I find the same problem with a shareable comp I'll send it over. Thanks so much for the offer again though. Jim |
Could you explain the difference between lottie_light.js and lottie.js in terms of the features they support?
I suppose lottie_light_min.js and lottie_min.js are just minified versions of each, is that correct?
The text was updated successfully, but these errors were encountered: