Skip to main content

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

airbnb engineers lottie
Image used with permission by copyright holder
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.

“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.

Williams Pelegrin
Former Digital Trends Contributor
Williams is an avid New York Yankees fan, speaks Spanish, resides in Colorado, and has an affinity for Frosted Flakes. Send…
Guess how much Apple has paid App Store developers — you won’t even be close
Apple's App Store.

Since Apple launched the App Store in 2008, the tech giant has paid out an astonishing $320 billion to developers.

The data was revealed on Tuesday in Apple’s annual analysis of how the company's various services performed over the past year.

Read more
Airbnb is finally fixing the annoying way it shows prices in the app
The Airbnb logo superimposed over a rental property.

Airbnb has taken user feedback to heart and is adding a more transparent way for app users to see how much a stay in a rental property actually costs. For years, users have been hit with additional hidden fees and checkout requirements, but with the addition of a single slider to the Airbnb app, the company will be giving users all of the information they need in order to make much more informed bookings.

On Twitter, Airbnb CEO Brian Chesky showed off how the slider works in a short video announcement. Essentially, the option will be added to the top of the app's UI and, once toggled on, will change a property's listed price from the usual "per night" total to the user's grand total for their full stay pretax. Upon completing a booking, a new option has also been added under the total cost that does a complete price breakdown that lists any additional fees that were previously hidden.

Read more
This Microsoft app could help you spice up your desktop
Two windows laptops sit on a wooden table.

If you're looking to spice up your Windows desktop in a new way, then you might want to keep an eye out for an item that may be coming from Microsoft soon. Reportedly in the works is an app that can help you create animated backgrounds with custom effects for Xbox consoles, as well as Windows PCs.

First teased as an "unknown project" by the well-known Microsoft leaker Aggiornamenti Lumia a few months ago, it looks as though the leaker has finally managed to reveal what Microsoft was working on. Aggiornamenti Lumia now believes that the project is the Xbox Dynamic Backgrounds Editor app, showcasing it partly in action.

Read more