Hi everyone, in this video we're going to look at this Custom Spring settings... we're going to look at the difference between stiffness, dampening, mass... there's kind of a relationship between them all, plus the time... what the heck is this? We'll cover it all in the video... but if you want the short version, the short version is this...
Spring, is how springy something is... basically, how back and forth it's going to go before it stops... and by back and forth I mean this, like the jiggling back and forth... add a stiffer Spring and the thing gets more bouncy... Dampening on the other hand is... basically how much kind of glue or resistance there is to that spring...
give it none... and just goes on forever, give it loads... basically goes nowhere... Mass, how heavy something is... that's very heavy, it feels heavy at least... give it even more mass, this thing is super heavy...
and it's fighting against the spring, it's going to take forever to stop... there we go, no mass... thing's light as a feather, on a super springy spring. with no dampening... all right, that's a short version, hang around and we'll dive in... and we'll set up this little button thing...
because this is kind of handy to know how to make... all right, let's do it. To get started I am going to... just use the page that we're using for our test spring animations... I've made a frame, I've drawn something that looks like a button... it is just a frame, I'm not going to make components for the moment...
because I don't want to mess up my Assets panel, because this is just a demo. So what I want to do is, set up the first one... let's get something from our Assets panel... so 'Option 2', 'Alt 2' on a PC... I'm going to use the hard icon... we're going to use that same overlay trick to pull it in...
so it needs to be a frame, 'Command Option G', or 'Ctrl Alt G' on a PC... 'Command R' to rename it, let's call this one "Heart" and it's about what I'm going to do, so now, 'Shift E'... "All the shortcuts, Dan, you're overwhelming people"... you're allowed to just click on 'Prototype'... so what I want to do is I want this to go to that... I'd like it to go, On Click is good...
you might note that you might be On Tap, is it? On Tap... mine should be On Tap as well... basically it tries to guess whether you're on a mobile device or a desktop... and it changes the language which confuses everyone... but anyway, On Click or On Tap, doesn't matter...
and then I would like it to go to open an overlay... maybe your frame has to be off the page, I'm going to go to 'Heart'... I'll just get it to go into the center... I'm going to get it to close when I click anywhere around the button... just to stop the animation, so I can restart it. Let's get it to move in, from the right, it's good for me...
let's actually have the gentle preset as a good comparison... now what I want to do is I want another one of these... I'm holding my 'Option' key down on a Mac, 'Alt' key on a PC... and 'Shift' to kind of drag it down to give me another one... and what I want for this one is, I want it to... not be Gentle, let's go to 'Custom Spring'...
and let the first one be... let's play around with stiffness... basically, this is how many bounces it's going to do... so look at the line here for gentle, just kind of goes, and... this line here is where it's going from right to left... and it's only going to go a little bit past where it needs to go...
and come back a little bit... only a tiny bit because it's gentle... but if I grab the stiffness, and say, you're at 500, let's say... it's going to go, bringing it all the way past it... you can kind of see it up here, look, you can see there, bouncing past it. So what we'll do is, actually, let's do the first demo with a stiffness...
of what was the default, 100, right? Yeah, let's do 500... let's duplicate this one this way, and do the exact same thing... and change this one... from stiffness, 100, let's go to, I don't know... 1000, crazy amount, now let's demo it.
I'm not telling you the shortcut for preview anymore... and we're going to make sure to go to the right one, let's use this one... and what I want is the first one... I'm going to go to the 'Fit to Screen '... I want this first one, that's the kind of gentle preset... but our one will crank up the stiffness to, what was it, 500?
Look, it's how many times it kind of bounces back and forth... how kind of strong that spring is, let's go up to... can't remember how much it was... but can you see, lower, the higher it gets the more bounces it has to do. Now the interesting thing with stiffness is that time plays a big factor... so I'm going to go 'Command 2', 'Ctrl 2' on a PC to change the tabs...
and I'm going to say, I'm going to make a third one... I'm going to be annoyed that I didn't make them big enough to have a third one. So this one here, I'm going to duplicate... and I'm not going to change anything, except for... see down here, we're going to look at what happens when we do change the time... it's going to mess with all of this, let's just do it first...
so, you know it's 1000, 15, 1, you remember that... if I change it to 2 seconds, or 2000 milliseconds... you're like, "Why did this all change?," and this is where it gets confusing... I've undone that, so basically, what it's saying is... I'm going to go one, two, three, four, five, maybe a little sixth... 1 at 1000, that's the sixth kind of springs back and forth...
so it has to fit there in 0.8 seconds, cool... but if I change the time it wants to do those same six kind of back and forths... but it has to do it over a lot more time... so the stiffness of the spring has to lower... so it kind of does the same six of them, they're all in there still... one, two, three, four, five, six, but it has to take longer...
so the spring ain't that stiff if it has to take that long to do six of them... am I helping? Let's preview it, so let's go... we're comparing this one, which is like six back and forth springs... happening quite quickly... this one's still six back and forth springs...
but it has to take a long, long time... because we told it to... so the spring doesn't look very stiff, does it, there you go... let's do some other ones and see if we can kind of get it better. So let's duplicate the Gentle again... and I'm going to change the color, wait for the jump cut, there you go...
I didn't say it was going to be a good color, but a color change... we'll look at dampening... so what is dampening? If you know shock absorbers, it kind of slows down the spring... the way I describe it, and the way it occupying my head... is kind of like adding a bunch of glue or molasses to the animation...
to kind of slow it down, and stop it being so free moving... so let's do it, let's, 'Shift D'... click on this one, everything is back to being gentle... let's switch it to 'Custom Spring', there's the default... dampening at 1 versus damp-- oh... dampening being at...
let's have a look at this one, let's go dampening at... 50... you can see, it really changes the graph there... but let's have a look at the animation... so you go away, click on this one... can you see, no dampening, no glue, no molasses...
no shock absorb-ering of the spring, springs is left to go crazy... so it changes the stiffness... don't think stiffness, think how many times it bounces back and forth... because it's left to a lot of no dampening it just goes forever, this one here... the stiffness again, just gets no bounce... so let's have a quick look at those two.
So this one here... because we changed the dampening, it's still the same stiffness... but it ended up cranking up the time... there's loads of time to get lots of back and forths in, let's look at this one... you can see, same stiffness but it changed the time on us... it's kind of backwards in terms of looking at the numbers...
but it makes sense when you're actually doing it... if you wanted to have more dampening, it's going to slow it down... so it doesn't need much time to go back and forth. So spring, how many times I want to go back and forth, dampening, kind of... gluey molasses honey stuff to kind of dampen down the spring... let me duplicate and change the color of this one, let's look at mass...
I'm going for the 90s hyper color sweaters, did anybody get that? If you're born in the 80s you might know, anyway. So what I want to do is look at-- so this one's gentle... so let's change it from Gentle and go to 'Custom Spring'... so mass, how heavy something is... so these are the defaults let's crank up the mass to 10...
same stiffness, same dampening, but the time got really long... let's do one more... and do this, the mass, how heavy something is... up to 500... look at that it's going to take - "More Maths, Dan." - 80 seconds... a minute and 20 seconds, "Good work, Dan." Let's preview them...
get rid of that guy, you come back in... look, he's super duper heavy... oh, this one, extremely heavy, you ready? Extremely heavy... but he has to do all his back and forths... because we said the stiffness, you know...
the, how many times back and forth that has to do... so it's going to be there for a while... do you want to watch it with me? You don't, oh... let's do one more, and let's... do the exact same thing, so let's...
have the mass low, have the dampening low, and the time... or the stiffness up to 200... let's make it a long time, I'm not sure how long this can go, is that maxed out? what's that, 2 seconds? Go a minute, 20, I said a minute, 20? Nope, only goes up to 10,000, so 10 seconds...
so let's have a go, and go, oh, disappeared... 'R' on your keyboard, just to reset it... here we go, there you go. I can't remember what we did... we turn the dampening down and we turn the mass down... and we turn the spring rate up...
and you can still see, it still jiggling in there, takes forever... it's got no weight, you can feel it, right? Now you can use these dragging slider things here, so let's look at this... we've been using just this part here... these things, I'm typing them in... you can't drag these, you can drag this one...
but you can actually drag this... so let's go back to 'Gentle'... and then go back to 'Custom Spring', scroll down... what you can do is, see this ball here, I don't really understand it... you can drag it around, and it does stiffness and dampening... you might be an animator, and be like...
"You know, there's this linear graph thing that we use all the time"... I find it quite tricky to use, but you can drag it. So dampening is up and down, and stiffness is left and right... you can drag this end part as well, and it affects both of them... because this kind of stays under this curve here... by dragging this end one, I mean you're dragging the time...
so it's kind of changing these to fit the parameters within there, there you go... I don't find that really useful. Oh, this one's going to be good though, you ready? Preview time... go away, come back... oh, that is good, maybe just drag it around...
"Don't be so number-ey, Dan." I hope that was helpful, learning the kind of spring settings in there... Ease In and Out's great, nice and subtle... but you can really communicate... animation through some of these spring settings... and you can be super custom with them now, thanks, Figma... oh, it's good, eh, accidental goodness...
all right, I'll see you in the next video. Oh, one last thing before we go... they went - the update that I had just a minute ago... or earlier today - went and reset my-- why was he zooming in and out? Remember, I hold 'Command' and use my scroll wheel on a Mac... and it's 'Ctrl' on a PC, to kind of zoom in and out, use it all the time...
but it was working backwards, I'm like "Man, is my brain switched?" Actually, that update went and, went to Preferences and inverted it... so that tick was, I normally have it on, to invert it... but by default it's off... so when the preferences updated they switched it on me... there you go, that happens, a little FYI for you at the end... all right, now on to the next video.