Using Lottie for your iOS apps

877 views 23 slides Mar 10, 2017
Slide 1
Slide 1 of 23
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23

About This Presentation

The Airbnb engineering team have released a library for converting After Effect animation to JSON file, that you can use for native apps. I'm going to share my short experience of using Lottie for an iOS project.

- Presentation made for Melborune Cocoaheads, March 2017


Slide Content

Using Lottie!
Jinju Jang

What is Lottie?
✦Lottie is an iOS, Android, and React Native library built by the
Airbnb engineering & design team.
✦It converts After Effects animations to a format for use in your
app.
✦After Effects animations in your app…?! So tempting!

…This is a lightning talk!
✦The learning curve - Time, difficulty, shippable or not.
✦My honest review - Good, bad, or weird experience through
the exploring.

Part 1.
The Learning curve
Lottie workflow & Time spent

Let’s make art!

Lottie Workflow
.JSON
Export Import
Body-
movin
Lottie

Time spent & Difficulty
DAY 1
Started learning 

After Effects
DAY 4
Made something
okay
Day 5++
Trying it with
Xcode!
! !!!!! !

Setting up Workflow 

= DONE!

Part 2.
(My honest) Review
Good, bad, and weird things

First impression 

= Easier than i thought!

creating conditions

Good = min-maxing!
✦From an idea to actual screen = less than 7 days
✦FYI, This type of idea usually gets rejected by your PM. 

(Because it takes too much time!)
✦A designer can work in parallel with a developer.
✦You can boost up creativity!
✦Super light. …The whole animation is only 9-15kb.

Bad…? Perhaps?
✦It’s less smart when you want to swap an animation to
something else. (We ended up using layer order)
✦Honestly, there is nothing *seriously* bad.

Weird = Frame rates
✦Frame rates seem slightly off compared to After Effects.
✦I don’t know what exactly causes this issue.
✦Let me know if you know how to solve this!
Note:
After the talk, many developers came to me and
explain why. It wasn’t smooth because the CPU
was rendering each single frame to show the
animation. (That was how Lottie worked!) 

—> Hmm… I guess that’s something you need to
trade off to get convenience for now!

Not now, but One day…
✦Complex layer effects
✦Merged vector layers
✦Gradient
✦Buttons
✦…Will be supported!

Please….

Conclusion
✦Recommend it, it’s really fun.
✦Until it becomes more clever, the best place to use it is
somewhere you don’t have to worry too much. (e.g: Replace
static illustration with a looping animation?)
✦Treat it as decoration.

Thank you!
@arle13