My goal was to add a lot of mini animations in this website, and still keep it as light weight as possible, after research, I found that lottie and JSON files are the best ways to do that.
So I protyped the animations on Figma as saved as JSON files. It was super easy for the developer to use the file, and the website didn't lag because some animations were as small as 6kb.
I'll definitely recommend using lottieflies to add animations to your website, it's easy to use, and it keeps your website fast.