The easy way to give animations personality
You don't want all your animations to look the same. If you don't change the default ease your animations are bound to have the same taste. Although it might be exciting at first, overtime your animations will feel lacking. This is where eases come into the picture. So let's meet them.
Video Transcript
00:00Unbeknownst to you, I did not like this animation, mainly because when you look at it, even
00:05before you play this video, the ease itself is so weird, it just doesn't feel right when
00:12you look at it.
00:13And that's exactly what we're going to solve now.
00:15And beyond that, we're also going to talk about something that I feel is really important
00:18is you need to be very comfortable with having libraries and documentations open as you're
00:23working.
00:24A lot of times, documentations are not perfect because they're not really aligned in the
00:27place where you actually could go and learn from them many times, but they're perfect
00:32if you already know what they are.
00:34Programming is not about memorizing, programming is about thinking.
00:39And if you could think and not memorize, it's not about learning a language, although, you
00:43know, after you learn the syntax, the language itself was in it, which was in our last course.
00:47At this stage, it's not about memorizing or knowing every single syntax.
00:51At this stage, it's already about knowing how to leverage your skills and your skills
00:55go way beyond how many functions you know, because you could always find more of them.
00:59And that's exactly the mindset I'm trying to get you into.
01:01And that's why you were going to look at the documentation quite a lot throughout this chapter,
01:06because I want you to start getting used to the idea of jumping back and forth into
01:10your documentation.
01:11So let's get started in this chapter.
01:14Now I want to talk about Eases.
01:16Now by default, as we load in our tween night, it comes with a bundle of Eases that we
01:21could customize.
01:23If you noticed in the last video in the last lecture, I wasn't completely satisfied with
01:28the way this copy is animating in.
01:30The problem is, is if you really pay attention, you'll notice that in the beginning, the copy
01:34is going way faster, and then it's slowing down towards the end.
01:38And it's not very natural for a copywriter.
01:41In a copywriter, I'd expect the letters to just come in more or less in the same
01:46velocity and speed.
01:47Contrary to that, I'm seeing here also with this text that's coming in on the
01:50bottom, that a lot of copies flooding in and then towards the end, only then we're
01:55starting to see the letters one, two, three come in.
01:58So what I want to do next is I want to basically add a better ease now by default.
02:03And if you go again to the documentation, always in the documentation and these
02:06again are properties of the extra object that you're sending the parameters that
02:11you're sending to your animation.
02:13In our case, this if we go into our effect function, we're going to put it
02:16inside of here, but it's one of the functions that we put in here.
02:19Basically, we set the command ease, and then we set whatever we want our ease to be.
02:25Now, by default, we said we didn't say it yet, but by default, if I just find this
02:30ease area again here, again, it's in the properties here, we have your ease.
02:34You'll see that the default is the quad ease out.
02:37And that is the reason why our animation is easing out.
02:41If we look at it again, we'll see we have your animation where our
02:44animation is easing out.
02:47We could, on the other hand, decide we want to take the same exact animation,
02:51the same exact quad animation, but instead of easing it out, which is the
02:55default, by the way, again, if we haven't said that already, we'll have your,
02:59we could, we're basically sending in a function.
03:02We could send in the ease out.
03:04We could send in the ease in, and the ease in will do the exact opposite effect.
03:09So if we set that and then click on refresh, we'll see that now it's going
03:13to be a lot slower in the beginning, and it's going to speed up as it gets
03:17towards the end and you see how it's slowly typing in and then quicker
03:21until it reaches the end.
03:23Or we could have the ease in and out, which with the command ease in out,
03:29ease in out, ease in out.
03:31I don't see it here, but let's type it in anyways, because I don't know
03:35about it exists, so ease in out.
03:41And if we set ourselves to ease in out and click on refresh, we'll see
03:45those are the three types of ways that we create eases.
03:49And you'll see that we'll have a slight ease in the beginning and a slight ease
03:53at the end, if we run it again, slight ease in the beginning, it's faster
03:58in the middle and it's slower again towards the end.
04:01All right, so those were the three types of eases that we have.
04:05Now, in general, if I didn't want any ease at all, or I wanted my ease
04:09to be very minimal, what I would do is I would send in an ease that would
04:14wouldn't actually wouldn't wouldn't be too, too strong.
04:20And I could play around with the different eases that I have here.
04:23But for example, if I wanted to have no ease at all.
04:26And by the way, I can't just send here nothing.
04:29I can't just send here a null.
04:30I can't just put here nothing.
04:31If I just put nothing inside, it's just going to do its ease on its own
04:35or it's going to throw something unexpected.
04:37So don't send nothing inside.
04:39It expects something specific.
04:42And it will basically override what you put there and put that default in.
04:47In our case, we could see it's quite smart.
04:50All right, so what I'm going to do is I'm going to try to find a normal normal ease.
04:54So if I go here and just look at the have your linear linear sounds really good.
04:59So if I go ahead and I just set here linear.
05:03I could set here an ease in and go and click on refresh down there.
05:14And go and do that normal ease in.
05:17Then we should have the normal animation, which is a little bit better in my perspective.
05:22When I'm looking at this, it feels a lot smoother.
05:25I'm seeing every letter come in.
05:26It's not as dramatic.
05:27The difference is between the start and then so it makes it a little bit more organic.
05:32And if we wanted to, obviously, we could also create eases that are different.
05:36Like, for example, a cubic ease if we wanted.
05:39And I'm not going to go through every single ease here.
05:41But what we do is these are power 12345 is basically they're how strong they are.
05:46So how strong that ease or that direction is.
05:49So if we start with the power zero and just create that power zero, literally look out
05:53and I'm not memorizing.
05:54And again, I didn't say this already.
05:57Memorizing is for actors.
05:59Programmers don't have to memorize over time.
06:01You'll remember more or less what it is.
06:04There's no shame in having the documentation open all the time.
06:07Every single developer I know does that.
06:09Every single video lecture does that as well.
06:12They just put it on the side where you can't see that they have that in advance ready.
06:16So no shame.
06:17We can do it together.
06:19I want you to get used to the idea of having documentation open because I want you to
06:22become amazing developers and you're not going to become amazing developers by just
06:26following what I'm doing without understanding what I'm doing in the backgrounds
06:29and the background.
06:30I'm copying these stuff anyways when I create the lectures.
06:33So if we do the power zero, we'll see that it's going to be a bit stronger.
06:39Nothing really dramatic.
06:40I'm not sure if I saved this.
06:42Let me just go back there and double check that I saved because I'm not seeing a big
06:45difference. How about we do power for and see what happens when it's really, really
06:50strong and you definitely see a huge difference.
06:56You can see how it's like flying through a lot faster than normally where it's slower
07:01and then it's becoming faster.
07:03All right. So, and we can go ahead and do a lot more of those, but play around with
07:07whoever ease you want, find the right ease for you.
07:10I personally prefer for our animation to linear ease.
07:13So I'm going to go ahead and just configure it and set it to be that linear ease.
07:18Now, before we wrap up this conversation, I also wanted to talk about I don't have
07:22to manually set it to linear in each one.
07:25If I know all my animation or most of my animations are going to need a specific
07:29ease, I could go ahead even in right in the beginning, just type tween light and
07:35just set my default, default ease, and then I could go ahead and just
07:42said, hey, I want the linear ease in to be the default ease in and there you go.
07:52And if I set my linear ease in as the default, I don't have to put this in.
07:56So I literally, if I just scrap this out and save it, we should still see a nice
08:01clean animation like we hoped and received earlier.
08:05It's going to program it.
08:06We're going to see more of the letters come in just like we wanted it to happen.
08:10So we saw how to use the ease by adding it as a property inside.
08:14We saw how to use the ease as setting as a default.
08:17So that way all the eases will come in all that we create by default.
08:20We'll use the linear instead of the quad, instead of the quad, I believe it was quad,
08:26quad, quad.
08:27Yep.
08:28Instead of the quad, ease out.
08:31All right.
08:32So that's it.
08:33This is all we have to talk about this.
08:34And I think we are done with this lecture, although I really wanted to check if the
08:38copy here is flowing now that we have the copy and the right speed.
08:42Yeah, this is a lot better.
08:44I like this much more than I did before.
08:47Beautiful.
08:48And I'm just going to finish this chapter.
08:50So congratulations, you finished the chapter.
08:53I do encourage you to make this even better, try to figure out a way to make this even
08:57better.
08:58Add more things to it.
08:59Our next lecture, we're going to start with a brand new skirt, brand new layout.
09:03And we're going to start deep diving deeper into the world of working the animations.
09:08This whole chapter was only between light.
09:10We didn't add any extra plugins or any extra anything to have it run.
09:15See you in the next chapter.
