About my personnal relationship with motion design and in-browser vectoral animations

When I was younger, I got into motion design as an hobbyist. I’ve learned how to use programs like After Effects, Cinema 4D, and Premiere by watching videos on YouTube and consuming diverse ressources online. So naturally, one of the first things I did when starting to develop websites was creating Lottie animations with After Effects, exploring the technology’s capabilities and limitations and adding it into my personal projects. Since then, I've incorporated Lottie animations into various projects and I’ve made some just for fun, some of them are on my **website.**

More recently, Rive seems to came out ****as a viable alternative to build beautiful, vectoral animations but with a different approach that embrace the most recent and powerful capabilities of our browsers. So, how is it in the real world? Is it truly comparable? Should we consider replacing Lottie with Rive?

In this article, I will compare Rive and Lottie in a messy way (but fast to read) and then, I will explore Rive in another article (link at the end).

Rive Facts

Remember Iron Man’s HUD? Damn cool.

Remember Iron Man’s HUD? Damn cool.

https://www.instagram.com/reel/C6JrmkOu7NV/?utm_source=ig_web_copy_link&igsh=MzRlODBiNWFlZA==

Lottie Facts

https://www.instagram.com/p/C2NrT4ISL-P/

https://www.instagram.com/p/C6n8axmSd_y/

The Evolution from .gif to Rive and Lottie

Lottie has been a game-changer in the realm of web animations, addressing the limitations of .gif files and providing a more efficient solution. Until recently, Lottie was the primary choice for in-browser animations. However, Rive has emerged as a strong competitor, offering enhanced interactivity and solving additional problems faced by the animation and gaming industries.

Lottie's Pioneering Role

Lottie, created by Airbnb, revolutionized how animations are handled in web and mobile environments. Its lightweight, vector-based animations offered a significant improvement over .gif files, which were often bulky and inefficient.

Rive's Innovative Approach

Rive has taken things a step further by focusing on interactivity and integration with gaming environments. Its use of WebAssembly and support for 2D interfaces in 3D environments showcase its potential to redefine interactive animations.

A famous comparison from a Rive’s website article:

Rive web example

Lottie web example

A screen capture representing the same animation in 3 different format. Lottie JSON (10.5KB), dotLottie (1.8KB) and optimized dotLottie (1.4KB).
Optimized dotLottie Files are about 80% smaller than a classic .json file.

Optimized dotLottie files are about 80% smaller than a classic .json animation file. You can find this animation on this page. Yep, you recognized Valorant’s “match found” animation (re-created by myself just for fun).

Rive: State-Driven and Performance-Oriented

State-Driven Animations: Rive is specifically designed to handle state-driven animations, responding to user interactions like hover, focus, and click events. It can also manage looping animations, A → B animations, or non-user-related states, such as a multi-step waiting screen (e.g., tracking your Uber Eats delivery).