Configuring ElasticEase a sample
As we can't cover every single ease, I wanted to take one of the cooler uses and show you how to configure it to get the most out of it. By the end of this lesson, you should be very comfortable with eases and will be able to do everything related to eases on your own.
Video Transcript
00:00We are taking it one step further. Last Ease we're going to look into because it's a little bit different and a little bit cool and different and really this is going to wrap up how do you work with Eases and I urge you and explore you to check it out more deeply and in this lesson we're going to look at how Elastic Bounces were Ease configuration and I'm going to go ahead and just comment down with this Eases and again and again and again and again just because it's important for you to remember all these Eases are based off of the
00:30Ease pack so make sure you're preloading it if you're working with Tweenlight and make sure you're also counting to see that if you cross that 23 it makes good sense to upgrade to Tweenmax. In general it makes good sense to upgrade to Tweenmax if you're using so many things like we are but let's continue and use the Ease pack and it doesn't really matter if you're in Tweenlight or Tweenmax the only difference is if you're in Tweenlight you have to preload that Ease pack and if you're in Tweenmax then it'll have that bundled up already in as a default.
01:00Alright so the next Ease that I want to look at and I just comment that Ease that we had before out is I want to look at the Elastic as we said and literally all I have to do is type here Elastic dot whatever Ease I want, I want it to be Ease In, do I want it to be Ease Out? Let's set an Ease Out because that makes more sense for our element. We want it to basically be Elastic in the ending portion of our Ease and you'll see that if we animate it we'll see that it's giving this nice little bouncy balance going on there. Very very nice effect.
01:30I really like it. Now obviously I don't know if obviously but something that you should note and should notice and should be thinking about that if I would do an Ease In in this scenario because my element is actually starting from that point that we won't actually see much of that Ease because it's going out of our scope. So it doesn't make sense in our case to do an Ease In we really only want to do an Ease Out because we set if you recall a long time ago when we created those buttons
02:00we set our button space area our panel here to have a width of 100 which gave it a lot of extra space here because our last button was in position 70. So we had there those 30 extra pixels to play around with. Now if I go ahead and I want to show you another something so if I'm going to do it here let's see we said Ease In isn't really working too well for us so we want to set an Ease Out and once we set that Ease Out what if we wanted to control a little bit more
02:30of that elasticity now if we wanted to control that elasticity a little bit more one thing that we could do or should do is configure it and that's something that you could do with a lot of those advanced Eases that exist only in that extra plugin. Go into the documentation of each to see what are the customizations that you could do to them but most of them if not all of them have some sort of customization that you could give them a little bit more personality. Now in the case of our elastic Ease the
03:00Ease Out or Ease In or Ease In and Out then we go to config again just like we had with our stepped Ease but this time around this config accepts two parameters. The first parameter is about amplitude and the second one is about period and we're talking about amplitude we're talking about how strong it is so really if I set it to be zero and zero then we probably wouldn't see much of an Ease or maybe we wouldn't even see anything at all. So
03:30or maybe we would get a default so how about we let's give this a try where we're going to put here a really high value in our first item that's going to control our amplitude and once we're controlling our amplitude and giving it a really big value you'll see that the amplitude means that it's taking it a really long distance out of its original destination. Now we can't see all of it because our element here is only a hundred pixels long but we could sort that and fix that very easily which is going inside and basically
04:00bigger so let's set it to be 200 and hopefully we'll capture it all and if I click on refresh we'll see that it's still really really big because our amplitude was that large so really maybe it makes sense for us to not be that dramatic and actually go to our amplitude and make it a little bit smaller so how about we'll double up our amplitude by setting it to two and if I go ahead and click on refresh then it should be inside of our range and I can play around with that value until I'm really happy so let me go set it to four so really
04:30take the whole span of our new 200 pixels area here and you can see that it's really going far here where one of the items is going a bit too far so I could go ahead and or make that maybe 3.5 and I could go ahead and even make that boxed area even bigger so I could make it maybe 250 because it doesn't really matter to me and I could click on refresh here and then I'll see that animation as I wanted and if I'm in love with this animation then there you go I could keep it the way it is so that controlled how far our
05:00bounciness was how far that amplitude was and with that said I could very quickly and very easily go and set that amplitude to be really low and set that amplitude to let's say 0.2 and that would make it a lot a dramatically smaller amount of bounce so you could control that bounce very very finely and decide how much of a bounce you want beyond that you could also define if you don't put zero which would keep it at its default you could also define how long each bounce is or how long the bounciness is
05:30so if I set this and I know my animation length is three seconds and I set my bounciness to be three seconds and I go ahead and I click on refresh here we're going to see something really interesting so first of all we'll see that it's a really slow slow taking it's a it's a bounciness that is incredibly slow but in the other hand if I go ahead here and I tell my bounciness you could be crazy fast you know let's say 0.1 that's your level of the period of time it takes you to do a bounce and if I go ahead and click on refresh we're going to see something very
06:00dramatic so we're going to get a very very very very dramatic animation now I know that it couldn't become really complicated to understand the configurations of each element but exactly what I did right now where I just went to the elements set the values to be zero which a lot of times zero will just mean it's going to do the default once I saw that it did the default then I just put a really high value and then a really low value that wasn't a zero and obviously the documentation will talk about it as well but probably your best practice is literally just
06:30grabbing one of the eases putting them in and then playing with the configurations based on the documentation then it says and seeing it in action and as we can't really explore every single one of those eases because I don't want to waste your time this is something that is really about you exploring there's not that many of them you know it changes all the time so I'm not going to list them all out because if there's new eases they could come you know eases come and eases go easy come easy go as the sentence goes so easy come easy go this lecture was easy it was kind of fun because
07:00it's a potential to create a really cool intricate animation but it really depends on you how easy you're going to make it I suggest go back to the documentation trying to find one of these eases that you think works best for our for our intro here for the slide here maybe even for the slide animation itself because right now we're creating a very generic slide very simplified nothing here is with bells and whistles so and that includes each and every component so feel free to come up with your iteration we saw how to create those specific
07:30steps in the last chapter or two chapters ago when we talked about our ad triggers play around with the ad triggers and add different animations that you think are best using these configurations using all the things that we've learned so far and this is the last time I'm talking about eases in this course and with it it's almost almost we're almost almost done talking about tween light as well because we really covered almost everything in tween light there's a few small things that we haven't covered which
08:00are inside of the core library of tween light and some of that we're not even going to touch about inside in this course but we're going to talk about it in a future course which is going to be our advanced course but with it we're going to talk here about a couple of things that are still interesting that relate to events that are really important for you to know because so far we were working with events but when we worked with events we only worked with on on update which is a very important event but there's a few other events
08:30that you probably want to know about and they could become incredibly useful when you're doing your own animations and with that it's going to be our last topic in tween light as we move into tween max and although there's a few more leftover things that we could talk about tween light I feel like they're more advanced and I feel that like they're more fitting for our more global bigger course well more advanced course that is really going to touch up onto the timeline light and timeline max so without further ado we'll see you in the next lesson where we
09:00will start exploring a few less things inside of tween light before we move into tween max
