Skip to main content

Airbnb’s Lottie helps fellow developers add animations to their apps

airbnb engineers lottie
Airbnb might be best known for short-term rentals, but its engineers also created Lottie, which could be a handy tool for developers who want to incorporate fancy-looking animations to their native apps.

Created by Airbnb engineers as a side project, Lottie lets developers incorporate After Effects animations in real time without the need to rewrite them. At the time of this writing, Lottie supports masks, alpha mattes, trim paths, solids, and dash patterns, with more being added “on a regular basis.” There is also an optional caching mechanism that allows frequently used animations to load faster.

Related Videos

“Lottie allows engineers to build richer animations without the painstaking overhead of rewriting them,” wrote the team in a blog post. “With Lottie, digging through frameworks for reference, guessing durations, manually creating Bézier curves, and remaking animations with nothing more than a GIF for reference will be a thing of the past.”

The end result are animations that are visually pleasing and have a sense of life and energy to them, factors which Airbnb engineers hope will lead to increased engagement or interactivity for developers’ apps. You might even see Airbnb incorporate Lottie into its own app, so do not be surprised if you see more animations with a future update.

Airbnb engineers did recognize that other libraries similar to Lottie already exist, such as Facebook’s Keyframes and Marcus Eckert’s Squall. With Keyframes, though, Facebook picked a small set of After Effect features to support for its reactions, while Airbnb engineers want to incorporate as many features as possible within Lottie. Squall, meanwhile, is used in combination with Lottie, but the former only supports iOS, and Airbnb engineers wanted Lottie to be cross-platform.

Lottie is currently available for iOS, Android, and React Native.

Editors' Recommendations

Nothing Phone 2: news, release date and price rumors, and more
Nothing Phone 1 with Glyph lights active.

The Nothing Phone 1 made its debut in July 2022, and it had a reasonable amount of hype behind it due to the involvement of Carl Pei, a co-founder of OnePlus. It was a quirky phone due to the unique light show on the back that makes it stand out from the competition, but on the software front, it’s very similar to other Android phones out there. It received mixed reviews, though the consensus leaned more on the positive side.

This year, we’re expecting the Nothing Phone 2, as confirmed by Pei in January during MWC 2023. Here’s everything we know so far about the Nothing Phone 2!
Nothing Phone 2: design

Read more
What is Amazon Music: everything you need to know
Amazon Music

It's a jungle of music streaming platforms out there, so it stands to reason that Amazon would have one among its massive kingdom of services. And while Amazon Music might not be top of mind among the Spotifys and Apple Musics of the world, you might be surprised by its 100-million-song library, high-resolution and spatial audio offerings, podcast library, Alexa voice control, and a pretty amiable user interface that makes finding music pretty easy.

Amazon Music's subscriptions range from free to its premium Music Unlimited tier, which can be added for $9 per month on top of a subscription to Amazon Prime. But they all come with some quirks and features. We're going to break them all down for you to help you choose which, if any, Amazon Music plan is right for you.

Read more
What is Google Assistant? Here’s the guide you need to get started
Using Google Assistant on the Google Pixel Watch.

Artificial intelligence (AI) is huge news right now, thanks to chatbots like ChatGPT -- but did you know you can already access an AI on your Android phone? Google Assistant is Google's AI-powered voice assistant, and it's available on Android, iOS, and a large number of smart devices (like Google's Nest speakers). While not as capable as ChatGPT (yet), Google Assistant can handle an impressive number of tasks — including pausing and resuming songs and videos, making tasks and reminders, and in some cases, even taking and screening phone calls for you.

That may seem like a lot, but Google Assistant is relatively simple to use. If you've never used a voice assistant before, we've got this guide to help you get to grips with it and take your first steps.
What is Google Assistant?

Read more