Enjoying this issue?
Get tomorrow's AI & engineering digest in your inbox — hand-picked, summarized, and always spam-free.
TLDR
Rive animations created through Claude's CLI are lightweight, interactive, and superior to AI video or code-based alternatives for mobile apps. A Pomodoro timer app with a dog character that grows and responds to touch was built using Claude to generate both the app and Rive animations. The approach enables non-developers to create professional animated apps without writing code.
Key points
Rive animations are lightweight and scalable, unlike AI video files which can be large and blurry.
Rive allows interactive animations that respond to user input, such as a character following the cursor.
Claude can use Rive CLI to create animations from plain English prompts without manual editing.
Gamification examples like Chick Focus and Finch show that adding character animations to boring apps can generate significant monthly revenue.
The iOS simulator in Claude desktop app autonomously tests the app, clicking through pages and fixing errors.
Tools mentioned
Techniques
- Using Rive CLI with Claude for animation creation
- Using nested sessions in Claude for task management
- Using brand guidelines for UI design
- Using Mobin MCP for design inspiration
- Using iOS simulator for autonomous testing
- Using Lottie for pre-made animations
Stop scrolling. Start reading smarter.
Receive the day's most important AI & engineering updates in one concise email. No spam.
Transcript (captions)
In this video, I'm going to show you how to build a mobile app with beautiful animated characters like these using the latest Fable 5.2. And everything you see here are not AI generated videos, but
they're all written in code using Claude. And I also want to show you a trick in how I make all these animations extremely fluid. And not only that, but I can even make them interactive where
the character actually responds to your input. And today I'm going to be building the mobile app using the new iOS simulator inside of the Cloud desktop app, which means that Claude can
work autonomously, clicking and testing every single feature before it hands everything back to me. Now, all of this sounds like a lot, but I did all this without writing a single line of code.
So, if you've never done this before in your life, you follow along in the next few minutes, you're going to be able to create something as beautiful as this, as if you hired a professional motion
designer. So, let's get started. Now, before we start, I want to explain why we're doing this in the first place. Why bother adding characters and animations? Well, characters and animations, they
make your app more fun and engaging to use, and that encourages people to come back to the app. And I think that is an obvious benefit. But there's actually a bigger reason cuz you can actually take
the most boring and competitive category in the app store. And you give it a character and turn it into an app that makes tens of thousands of dollars per month. And I'm going to give you a
couple of examples here. So, this is an app called Chick Focus. And this app is basically a Pomodoro timer. And as you can imagine, a timer app like this is pretty generic and most of the timer
apps out there are basically free. But they added this little chick here that basically grows as you are using the timer. And just by adding that simple character changes the entire experience.
And apparently this app is making $5,000 to $50,000 a month. And another example here is Finch. And at first glance, I think this looks like a game. But underneath it is actually a habit
tracker app. So, instead of just checking off a to-do list, like a boring habit tracker app, they actually gamified the experience by adding this little bird here. And basically, with
every goal that you complete, it will help the bird grow. And they also added a bunch of missions that you can complete. And this app is making between a million to $10 million a month. And
what about this app called Forest? This is another Pomodoro timer app. And again, instead of just a basic timer app, they designed the app so that whenever you complete a session here,
you are actually planting a tree, but if you fail, the tree dies. And if you complete a bunch of tasks, you can grow an entire forest. And apparently they're making between $100 to $500,000 a month,
which is pretty insane for a Pomodoro timer app. So you can see that you don't have to invent a new idea cuz I think there's already an app for just about anything now. So the game becomes taking
a boring category, adding a bunch of character animations, and you have a completely new app that is unique. All right, so now that you know why it's important, let's talk about how to
create these character animations. Now I'm going to go through a few ways to do it. The pros and cons and then the best way and how the big apps like Dualingo are actually doing it. Now the first way
and what most people think is the best way is to use an AI video gen model like Cance 2.5 here to create the animations. I mean the animation itself look pretty good. But the problem with this is that
video files can get quite huge. So if you need 30 of these animations, your app will be very clunky. And plus if you need to scale the animation, it might look blurry as you scale it. And not to
mention with AI video sometimes it's hard to get the character to be consistent. Now the second way is to ask a lot to create the character animations using code. Now Opus and Fable is very
good at creating motion graphics with code which is great cuz that means your character is created with lines of code and if you want to change a color is just changing one line of code, right?
But the problem now is if you ask it to create characters that has a lot of movements like this, they come out very stiff and rigid. So it's almost close to like stick figures, right? So you don't
want to do any of this because I think the best way to create this animations is by using this tool called Rive. And this is what the big apps are using to create their animations. And you can see
that this is the animations for Dualingo that is created in Rive. And this animation here is created for Spotify. And we got one for LinkedIn as well. Now I'm not sponsored by Rive. I pay for all
these tools myself. And by the way, they do have a free account. And we will get to pricing in a little bit. Now you might have also heard of Lahi, which is also a tool to create animations. So the
question is why not use this? So the main difference between RI and Lahi is that Lahi, if you click on this one here, what you get is this kind of looping animation, but it's not
interactive. So I cannot click on any of this. Whereas on RI, you can actually make the character react to my cursor. For example, if you see this character here, as I move my mouse, it actually
follows me. And when I click on it, it can actually fire the gun, right? So you can see that I can interact with all these animations. And it's not just for games. So if you can see from this
example here, this one also follows my mouse. This one as well. So I can actually click on the sheep and it will do something right which is pretty cute. But you don't have to worry cuz you
don't have to create all these animations from scratch cuz REV actually has a CLI which allows Claude to directly connect to it and create all the animations for you. So you don't
have to know how to use Rive. You can tell Claude how to do it in plain English. All right. So for today's example, I'm going to build a Pomodoro timer app. Let's do something similar to
Chick Focus here. But instead of this chick here, I'm going to use dogs instead. So here's the plan. I'm going to now ask Claude to generate all the pages of the mobile app. And while that
happens, we're going to create all the animations using RI. And when everything is done, we're going to add those animations to the mobile app pages. So, let's start with the mobile app. So, I'm
going to paste in this prompt here that I prepared earlier. It's kind of a long prompt, but don't worry about screenshotting this cuz I'm going to make this available in the description
below. But basically, what I'm saying here is that I'm asking it to build an iOS mobile app similar to Chick Focus. And I'm giving it the URL to the App Store. And I'm also giving Claude what I
have in mind in terms of the main pages of the app. So obviously we want a timer with a dog walking and I want a page to choose uh different dog characters. And I also want a dog park here. And I'm
thinking about when a user completes a task, you can send the dog right to the park with all the other dogs. So this is a way just to gamify the app. I also want a page where the users can purchase
toys. And we're going to use bones as the currency. And I'm also going to ask it to use my mob in MCP to look for ideas on how we should design the success page. So study apps like
Dualingo, Headspace, ahead and look at how they're doing their success pages. Maybe we can get inspiration from those. Now in terms of design, I already have a brand guideline here. So I'm providing
that here as well. And brand guidelines is just a page with all the colors, all the fonts that I want. So you can see that these are the color options that Claude can use to design the app, the
typography, all the spacing and how I want the shadows to be and even the corner radius of all the buttons. I've got everything here and I'm also giving it a skill. This particular one is by Al
Kowalsski. So basically this is quite a popular skill for designers and you can put this into cloud and teach it how to polish the UI of the app to make everything more fluid like it was made
by Apple. And last but not least, I'm just saying here that all the doll character animations will be created in Revive in a separate session and I wanted to build the app on React Native
via Expo and I want to eventually test the app on the built-in iOS simulator. So that is my prompt here and I'm actually building this app using something called nested sessions which
is a relatively new feature in Claude. So if you look to the left here, this is the main chat and you can have multiple chats under the main session here. So we want to think of this main chat here as
the boss that can check all the work that's done by the other chats. And this is just my preferred way of building apps now because it's a lot easier to manage, especially if you're building a
few things at once. And you're going to see why as we move further into the video. Now, while that's working, let's start working on the more interesting part, which is the animations. Now, to
create animations in RI, you previously had to be able to do everything manually in the RI editor. But like I said, they recently launched the RI CLI here that allows Claude or Codeex to create the
animations. So, we just need to tell Claude what we want to create in plain English inside of the Claude desktop app. And through that CLI, Claude is going to be able to write the code
inside of Rive and even show us the output right on the Cloud desktop app. So we basically never even have to open Rive to do all this. So now I'm going to give Claude this prompt, install the Re
CLI, and also read the docs and understand the best practices in creating animations with RIVE using the CLI. And now Claude is going to install everything and it's going to learn
everything there is to know about RI. Now let's start to create the animation. Right? So we've got this green screen here with the dog walking above the timer. And if I click on this, it's
actually going to jump. Right? So it is also interactive. So how did I create something like this? So basically there are three main ways that you can start. Number one, you want to think about the
character that you want to put here, right? So in this case, we want to have a dog on the timer. So what I did is I just basically went to Pinterest and just look for dog illustrations and I
basically found this dog here, which is actually pretty cool and it's actually GIF animation. So what I did it was simply take the URL of this page and put it into claude and give it this prompt,
right? Hey, can you take a look at this animation? And I want to design this with Rive. And since this is a timer app, I want the dog to start as a puppy and grow into an adult as the timer
progresses. And I also want the dog to react to my touch. So if I press the character, I want the dog to actually leap. So I'm going to send this off. And in just a couple minutes, we have the
RIP animation ready. So let's play this. So it's going to start from a small puppy and it progresses gradually growing into an adult puppy. And I think that looks super good. Now, as you can
see, this is really good, right? It looks pretty much the same as the original. Now, of course, I'm just doing this as an example to show you how close you can actually get. But when you are
actually shipping a real app, of course, you don't want to just copy. You want to change some of the colors here. You want to change the shape. Or you can also go to JBT images and you can just feed it
this image and ask it to give you a couple more variations of this illustration here and then pick the one you like and then animated with RI. Now, to be honest, I didn't get a perfect
animation in the first try. I went through about two to three iterations. So, as you can see here from the previous version, you can see that there's a couple of rough edges. I can
see there are some errors here. There's sharp corners. So when this happens, you just simply have to mark up all the areas that you want it to fix and it will actually fix everything. But you
can see from this example that you can get a very high quality animation that is not an AI video, which means that it's lightweight and it is optimized for mobile apps. And even if you create
hundreds of these animations, it's not going to take up that much space. Now, the second way to get some ideas for animations is to go to the Reich marketplace here. So there are some
examples here that you can browse and maybe you can use or at least get inspiration from. So, I found this sausage dog here, which looks really cool. I just love how it animates. And
if I go down here, there are actually some controls that I can change. So, if I click on four, maybe add some values here. You can see that it's added some costume, some props to the dog. So,
let's say I want to take this for our app. I can actually click here and remix in Revive. And when you click on that, it's going to open up the file in this editor here, which I have no idea how to
use. But you can see that we can customize everything that we see here. The colors, the movements, and even changing the animal if I want to, right? Sometimes you just want to study how the
animation is done. So you can give this to Claude and Claude will actually go in here, study how it's done, and use that animation for another character that you create. Now, to make it simple, just for
this video, I'm going to ask Claude to just change the color of the dog here, maybe to brown, for example. And I'll just prompt it, hey, I want this dog here, but change the color to brown. And
I do want all these costumes to appear as the timer progresses. And just make sure that you put the URL here inside of the prompt as well. And just a few minutes, we've got the dog rendered in
brown. So that looks pretty cool. And this was pretty quick to change because everything here is basically just code. It's already been created. We're not recreating the animation. So it is just
simply changing one line of code and that's about it. Now the third way to good animation is actually going to a free library of readym made animations. But before I show you how to do this,
let's check on our mobile app pages. I think it's done. So here you can see that Claude has created the structure of the page of all the pages actually. I think it looks pretty good in line with
our brand colors. So you got the welcome screen. This is the focus screen. And we also have the page for the success animation. And if I scroll down here, we've got the page for the stats and for
the shopping and also to select the types of dogs. So I think overall it looks pretty good. Now I'm not going to spend too much time on the pages here cuz I really want to focus this video on
the animations. But what you're seeing here is just a prototype that lives in cloud design. But I want this to be displayed on the iOS simulator. Now to be able to do that, you have to have
Xcode installed on your Mac. So Xcode is free, but it's kind of huge. It's 12 GB and you also got to be running Apple Silicon Mac and unfortunately it doesn't run on Windows. Now assuming that you
have Xcode installed, you can now give it this prompt. I'm happy with the page design. I want you to build the app and test it and preview it in the iOS simulator. Now if you remember, I asked
Claw to give me recommendations on the success page animations from Mobin. So, it gave me this particular screen in Dolingo, which is an animation that pops up when a user completes a task, right?
And I think I like it and let's cut it. And by the way, if you guys are not familiar, Mobin is an app that I use where you can basically see all the app screens from thousands of popular apps
like Dualingo, Trip Advisor, Slack, Airbnb, and Mobin also have an MCP connector to claude. So, Claude can also go in there and do the research for you. Again, this is not sponsored. This is
just something I pay personally. Now, let's say I want to design something like this, right? Obviously, instead of the Dualingo mascot here, I want to maybe replace it with a check mark
animation or something like this. Right now, I can go to Pinterest and probably find a picture of a check mark and ask claw to animate it in RI. But if I do that, I probably have to go through a
few revisions, few iterations. And sometime I don't want to do that just for a small animation like this. So, what I can do, and this is actually the third way of creating animations, is
going to l here, which is basically comparator, and try to find a pre-made animations from their free directory here, and they have a lot. And I think this is an easier and faster way to
create smaller animations. So you don't have to animate every single thing in your app from scratch. So for example, like this confetti here, you don't want to create this from scratch, right? So
with this secondary animations, you can just grab it from here and change the color. So you can focus and spend more time on the main characters of the app. So now I can just search for maybe
success here and try to find an animation that I like. And I found this trophy animation here that I think will look good on the success page. And what I can do now is I can grab the JSON file
here, which is basically code, and give it to Claude to analyze and ask it to recreate it in Refe. And by the way, you could technically just take this file and apply it to your mobile app
immediately. But let's say we want to keep everything in Refe. So I can copy this URL here and paste it into your prompt here and say, "Hey, I like this trophy animation for my success page. I
want you to convert it into a RIFE animation file, but change the colors of the trophy to match my branding." Now, if you notice, I never gave my branding colors to this particular chat here
because I gave it to the other chat which is doing all the app pages, but because we're working on nested sessions, all the chats are able to talk to each other. So, they're going to be
able to message one another and ask for the branding colors if they need to. So, basically, they can see what everybody is doing. And I think this is really helpful. And now you can see that the
animation is ready and already change all the colors to our branding. So, I can play it and it looks exactly like the one we saw in Ly. All right. So, now we got all three animations ready and I
want to put everything on the actual app. So, I'm just going to say, can you place all the RI animations in our mobile app and just send it off and just in a few minutes later, we've got all
the animations put in place. They are here in the simulator on the right side. So, let's click through these and see what we have. By the way, we have this pulsating circle here behind the
character, which looks really cool. And this dog is created in RIFE and it blends nicely into the spinning globe here. And I think that just gives you that nice 3D effect. So, let's click on
get started. And now I can select which pop I want to choose. So, let's choose this one. And now this is the timer page. And here I have some buttons to choose the length of the timer. So,
let's just choose 15 minutes here. And let's start the timer. Nice. That looks good. All right. So, now the timer is starting. And we got this animation. I think that looks pretty cool. And we've
got this popups that encourages the user to continue. And you can see that this is actually faster than normal cuz this is just for a demo. All right. So, that's the success animation. Looks
really good. And now I can send this dog to the park. And that's what the park looks like, right? So, the idea here is that as you complete more missions, you can add more dogs here. And over time,
you have more dogs. And I also did this in RI previously, and it's not perfect. This is the first version. And you can see from the pond here, it doesn't look real. But I just wanted to show you
what's possible with animations in RIFE. And I also added a page where the user can buy some dog toys here, tennis balls, frisbee, soccer ball that can also be added to the park. And we're
using these bones here as currency as well. So, that's one way to make the app more fun. And you can also take this idea further and maybe create different types of parks, but you can only them
after completing a certain number of hours or something like this. So there's a lot of ways that you can gamify the app so that users keep coming back to use the app. And by the way, the nice
thing about having the simulator here is that every time Claude makes some changes, it will actually test everything itself by clicking all these buttons, swiping through all the pages
before it hands everything back to you. And when it finds any errors, it's going to fix them and then retest again. And I think that's super convenient because without this, you have to push the
update to your phone and then you got to check everything yourself and go through all the pages, which is something that you eventually have to do. But it's just nice that when you're building
something, most of the testing can be done and automated with claude before you do the final checks. And the other thing that you can do with this simulator is that you can actually
rotate the screen as well. So let's say I start this timer here. If I click on rotate here, it's going to change the orientation and move all the UI elements here and rearrange it according to the
orientation. So if there's any errors, you can catch everything in the simulator here. Now, one thing to know that you're not going to be able to do 100% of all the tests here because if
your app has some haptic feedback or it has a function where it needs to access the camera, then you got to do all those things yourself on the phone. And by the way, if you're wondering, RIFE has a
free plan here where you can start creating animations with the CLI. But because it's a free account, there is a RIFE splash screen every time you play the animation. But when you actually
ready to publish for the app, the next tier is only $9 a month, which I think is super affordable for what you get. And you're going to be able to export the animations without the splash
screen. So there you go. That's the basics on how to add RIFE animations to your mobile app. And by the way, let me know in the comments if you guys are trying this out. And if you want to
share what you've built, also feel free to share in the comments below. And if you enjoyed this video, don't forget to subscribe. And as always, thanks again for watching. I will see you guys in the
next