Simplify your animations with Lottie now!

Save time on complex animations!

·

3 min read

Simplify your animations with Lottie now!

Background

I trust many front-end engineers feel that reproducing animations with CSS is really hard.

Let me introduce you a really nice library which can save you from that, Lottie (produced by Airbnb).

Lottie is not restricted to Web development but also Android, iOS, React Native and Windows, which means you can use the same file source in all platforms.

Demo

Here is a online Lottie web player and Android sample app which you can play and preview the power of Lottie.

How To Use Lottie

Designers install Adobe After Effects Plugin to export their animation as JSON, then developers can play the file with Lottie. Really easy isn't it!?

Pros

  1. Small fie sizes and better color reproduction

    Lottie animation in JSON is extremely small size compared to WebP, APNG and GIF while maintaining good color reproduction.

    Further information here

  2. Cross-Platform

    As I mentioned earlier, library for Web, Android, iOS, React Native and Windows are supported, keeping the same file source in all platforms could reduce complexity.

  3. High Manipulability

    Lottie allows developers to manipulate the animation in anyway they like and also most importantly, you can program your animation to respond to any interaction, i.e. animation direction, playing speed, hover event...

  4. Nice browser support

    Check Browser Support

    Lottie animates through just pure SVG and JavaScript, so there is really high support among browsers if your in web development.

  5. Made by Airbnb

    Lottie is created by Airbnb, Airbnb has always been active in the open source community, Airbnb have contributed lots of open source projects, the most known is the JavaScript style guide.

Wrap Up

You should try to use Lottie if your project has high demand in animations. It is simple to add cool animations to your projects with just a few lines of codes.

Did you find this article valuable?

Support Shineve's Blog by becoming a sponsor. Any amount is appreciated!