All right, hold on to your hats, like, watch this... if I hover above this button, oh, look, it changes... it's interactive, it's a component, that's how it works... we've actually done this earlier on in the course with animations... but we didn't really call it interactive components, because it was animation... but now we're going to get this hover state, the one thing is going to be...
is it obvious? I don't know... the hover one is really easy to learn, this principle, or just to recap it... one thing, that's not going to work though, is hover on a phone... as much as you want to hover your finger over your phone and get it to change... it doesn't work...
this is more of a hover button for desktop... but the hover state is a great way of showing the interactive components... so let's make it. First up, just so you know... this is the exact same technique... we did earlier for our animation, with our text popped up...
we made it a component, there were variants... there was interactions between these variants... that is an interactive component... but we were using it for like a trick for animation. When people talk about interactive components normally... they're dealing with those UI elements...
like the button you saw, so let's go and make it. So to start with, I created the button... the button is nothing more than text in a rectangle... I've made mine an auto layout... so the button changes size, that's totally optional... what isn't optional is that the thing needs to be a component...
so in my case it's a frame, it's an auto layout frame... I'm going to convert it to a component, you can see down there... Component Symbol, I'm going to make a variant of this... and this one here, I'm going to switch to 'Design' mode, 'Shift E'... click on the background... find the background, and pick one of my darker colors, that'll do...
and all we need to do now is add animation... so 'Shift E' again to go back to Prototype mode, and say... this goes to here, but 'On Tap', I'm going to go for the 'While Hovering'... and when it's hovering, Change to is Variant 2... I've got some bad naming going, but it's working... let's go and say 'Instant' there, let's just leave it all by default...
and give it a test, I'm going to go 'Shift 1'... I'm going to decide which page to work on, going to throw it onto my wish list page... any page you want, I'm going to go to my Assets, 'Option 2', or 'Alt 2'... and I'm going to go, where are you, button... where are you? There you are, cool...
I'm going to throw it onto this page here, which I'm previewing over here... and hopefully, if I scroll above it, look at that, it's got a hover... it's not very pretty, but that's it, interactive components. So the things that need to happen is that it needs to be a component... and you need to have more than one variant... and you need to kind of animate between the two...
interactive components, I'm going to fancy mine up a little bit... there's nothing else that productive in this video... we'll do something a bit more complicated in the next one... but for the moment I'm going to pretty mine up... if you want to hang around, hang around, if you don't, don't. 'Shift 2', what I want is, you...
so we're hovering, actually, first let's name these things. So I'm going to go 'Shift E', back to Design mode... and you are called "Default", that's fine... and this one here is not Variant 2, so it's going to be called "Hover"... I'm also going to fancy this one up with a Drop Shadow, yes indeed... my favorite Drop Shadow is 0, something like 2, I'm tabbing along, '2'...
something like that, I like it kind of pointing straight at the bottom there... you see that one? So now when I hover above it, can you see, a little Drop Shadow that appears... also, it's a little bit stuck the way it changes with Instant, so 'Shift E'... to go back to Prototype... instead of going to Instant, I'm going to go to Dissolve or Smart Animate...
I'm going to go 'Dissolve', so there's a nice kind of fade between the two. Anything else I want to do? No... it's a hover button, Dan, what else can you do? All right, that's going to be it for the moment... let's get into something more complicated in the next video.