< Return to Video

Figma Interactions for Beginners

  • 0:00 - 0:04
    >> In this video, you will learn how to
    create interactive components like a pro.
  • 0:05 - 0:09
    Make sure you stay until the end to see how
    you can nest these interactive components,
  • 0:09 - 0:12
    and create even more realistic prototypes.
  • 0:12 - 0:14
    Now let's get into it.
  • 0:14 - 0:19
    Okay, so before we get into the tutorial, I just
    want to suggest two videos for you to watch.
  • 0:19 - 0:24
    First, my video on Smart Animate, because
    we'll be using Smart Animate in this tutorial.
  • 0:25 - 0:30
    Also, my video on component properties
    will be very helpful for this video.
  • 0:30 - 0:34
    So go check those out, and
    then come back to this video.
  • 0:34 - 0:36
    Yeah, now let's get started.
  • 0:37 - 0:41
    So first of all, why do we
    use interactive components?
  • 0:41 - 0:43
    And the argument is pretty simple.
  • 0:43 - 0:48
    You'll be able to go from something
    like this, to something like this.
  • 0:48 - 0:56
    So from this hot mess of, I don't know how
    many artboards or frames, for, like, 16, 24,
  • 0:56 - 0:59
    bunch of frames, to just one frame.
  • 0:59 - 1:04
    And then what you can do is you create
    things like buttons, accordions, drop-downs,
  • 1:04 - 1:08
    whatever you want in the form
    of an interactive component.
  • 1:08 - 1:12
    Once you've created them in one
    page, you can take those components,
  • 1:12 - 1:15
    so regardless if it's your
    buttons, or tabs, or whatever it is,
  • 1:15 - 1:19
    you can take those and then reuse them all over.
  • 1:19 - 1:24
    So you can reuse them in your file, in
    different pages, even within different files,
  • 1:25 - 1:30
    you can search in your assets panel, and find
    the button, or the accordion, or the dropdown,
  • 1:30 - 1:36
    whatever it is, take it, drag it onto
    the canvas and start making your magic.
  • 1:36 - 1:39
    First of all, let's start by creating a button.
  • 1:39 - 1:40
    I'll create a button.
  • 1:40 - 1:41
    I'll call it button.
  • 1:41 - 1:43
    I'll add auto layout to it.
  • 1:43 - 1:47
    And by the way, if you want to know how to use
    auto layouts, I have a video on that as well.
  • 1:48 - 1:51
    I'll add a fill color, maybe
    something like that.
  • 1:51 - 1:53
    Give it some rounding.
  • 1:53 - 1:55
    Even give it a stroke.
  • 1:56 - 1:58
    Maybe something like this.
  • 1:58 - 2:00
    All right, so we have a button.
  • 2:00 - 2:01
    I'll call it "button".
  • 2:01 - 2:04
    And for the sake of having
    this tutorial short and sweet,
  • 2:04 - 2:08
    I will just have two different
    states for this button.
  • 2:08 - 2:14
    So we have the default state, so that's what it
    looks like when it's just in its original state,
  • 2:14 - 2:19
    and then we have the hover state, which
    is just going to be maybe an opacity.
  • 2:19 - 2:23
    So I'll take these two, I'll
    create a component set.
  • 2:23 - 2:27
    And I don't create a component out
    of these, because if I do that,
  • 2:27 - 2:32
    and then I go to my assets panel, and I
    search for component, because it's called
  • 2:32 - 2:35
    that right now, I will get both
    of these when I drag it out.
  • 2:35 - 2:38
    We want just one instance, right?
  • 2:38 - 2:42
    So we're not going to have
    this be one single component.
  • 2:42 - 2:44
    We're going to have it be a component set.
  • 2:44 - 2:47
    Right now, we have the two different
    states, but we want interactivity.
  • 2:48 - 2:50
    When we hover this, it should become this.
  • 2:51 - 2:52
    So I'll go here.
  • 2:52 - 2:55
    I'll add an interaction while hovering.
  • 2:55 - 2:58
    Change to property default.
  • 2:58 - 3:00
    So now both of them are called "default".
  • 3:00 - 3:02
    So let's change that.
  • 3:02 - 3:03
    It's going to be state.
  • 3:03 - 3:06
    This one is default, and this one is hover.
  • 3:06 - 3:11
    So now if we look at the interaction again, it
    says, "While hovering, change to state hover."
  • 3:11 - 3:15
    And we have Smart Animate, 150 milliseconds.
  • 3:15 - 3:16
    Sounds good.
  • 3:16 - 3:19
    And then while we're not hovering
    it, we're going to go back to this.
  • 3:19 - 3:22
    So now on click, on mouse lead.
  • 3:22 - 3:26
    We're going to go back to default,
    Smart Animate, 150 milliseconds.
  • 3:26 - 3:27
    Let's try it out.
  • 3:27 - 3:29
    Drag it out, the component.
  • 3:29 - 3:32
    I could also go up here, search for button.
  • 3:32 - 3:33
    Drag it out here.
  • 3:33 - 3:38
    I'll add a frame, and maybe we'll
    add a fill color to that frame,
  • 3:38 - 3:41
    and we'll add prototype, flow starting point.
  • 3:42 - 3:43
    Click play.
  • 3:43 - 3:45
    Zoom in a bit, however, and it works.
  • 3:45 - 3:51
    Awesome! So this is our first
    interactive component.
  • 3:51 - 3:55
    Now we're going to create a tab item component.
  • 3:55 - 3:59
    Once again, I'll add a text saying, "tab".
  • 3:59 - 4:03
    and then we'll have some sort of an underline.
  • 4:03 - 4:06
    I'll add an auto layout tab.
  • 4:06 - 4:10
    Set this to fill container, and this to white.
  • 4:11 - 4:16
    So we're going to have one state, where it's
    hover, and one state where it's default,
  • 4:16 - 4:18
    obviously, and one state where it's active.
  • 4:19 - 4:22
    So actually this is the active state,
    but we can duplicate this three times,
  • 4:23 - 4:25
    create a component set once again.
  • 4:25 - 4:28
    So this will be the default state, right?
  • 4:29 - 4:34
    So state default, and we have
    state hover, and state inactive.
  • 4:34 - 4:41
    So the first state, default, I don't want this
    to be visible, so I'll set that to zero opacity,
  • 4:42 - 4:47
    and I want this to be maybe a bit faded out.
  • 4:47 - 4:50
    And then we have the hover
    state, which is going to be --
  • 4:50 - 4:55
    we see this underlying, but it's
    not as evident as the active state,
  • 4:55 - 4:57
    and this is also still going to be faded out.
  • 4:58 - 5:01
    And then we have the active
    state that looks correct.
  • 5:01 - 5:02
    All right.
  • 5:02 - 5:04
    So let's add some interactivity to that again.
  • 5:04 - 5:10
    So when we hover it, I want it to
    go to this on -- while hovering.
  • 5:10 - 5:13
    Change to hover Smart Animate.
  • 5:13 - 5:16
    Then on click, I want it to go --
  • 5:16 - 5:22
    oh, sorry, this should be called
    active, and this should be inactive.
  • 5:23 - 5:26
    So inactive, hover and active.
  • 5:27 - 5:29
    Let's go back to the prototyping settings.
  • 5:29 - 5:32
    So while hovering, change to hover for this one,
  • 5:32 - 5:36
    and here on click, change
    to active Smart Animate.
  • 5:36 - 5:37
    That looks about right.
  • 5:38 - 5:42
    So if we drag this out here,
    we can go to the assets again.
  • 5:42 - 5:43
    What is it called?
  • 5:44 - 5:46
    It is called "tab".
  • 5:46 - 5:54
    Search for it, drag it out,
    and we'll add it to the frame.
  • 5:54 - 5:55
    Give it a full starting point.
  • 5:55 - 5:58
    Play it. All right.
  • 5:58 - 6:02
    So when we hover it, we get that
    thing, when we click it, it's active.
  • 6:02 - 6:04
    So that works.
  • 6:04 - 6:11
    Awesome! This, by itself, will not be enough
    for the example that I want to make here.
  • 6:11 - 6:15
    I want to be able to click one of
    these tabs, and when I click that tab,
  • 6:15 - 6:18
    I want all other tabs to become inactive.
  • 6:18 - 6:20
    So how do we do that?
  • 6:20 - 6:27
    I'll actually take this tab component, but
    we can go to the assets tab or assets panel.
  • 6:27 - 6:28
    I'll drag it out.
  • 6:28 - 6:30
    I'll duplicate this component three times.
  • 6:31 - 6:36
    I'll add an auto layout to
    this, and call it tabs, plural.
  • 6:36 - 6:40
    This will be tab one, this will be
    tab two, and this will be tab three.
  • 6:40 - 6:46
    I want one of these to be active, and
    the other ones should be inactive.
  • 6:47 - 6:51
    When we click this, tab two,
    this should be inactive.
  • 6:51 - 6:55
    When we click tab three, both
    of these should be inactive.
  • 6:55 - 6:58
    So I need to create a flow for that.
  • 6:58 - 7:02
    So what I'll do is I'll create
    a component out of this.
  • 7:02 - 7:05
    And in this component, I will add some variants.
  • 7:05 - 7:07
    So let's add a variant in here.
  • 7:08 - 7:10
    We have the variant where tab two is active.
  • 7:10 - 7:12
    Then tab one is inactive.
  • 7:12 - 7:18
    We'll also have the variant where tab three
    is active, and all of the others are inactive.
  • 7:19 - 7:21
    So when we click tab two, prototype.
  • 7:22 - 7:26
    On click on this one, I wanted
    to go to this variant.
  • 7:26 - 7:27
    So on click, change to variant two.
  • 7:27 - 7:33
    And to make it a bit simpler to
    read this stuff, let's say state --
  • 7:33 - 7:43
    or not state, maybe, let's say variant, and
    this is going to be tab one, tab two, tab three.
  • 7:43 - 7:47
    Once again, when we click tab
    two, it's going to go to this one.
  • 7:47 - 7:51
    When we click tab three, it's
    going to go to tab three.
  • 7:51 - 7:56
    Tab two from this one is going
    to take us back to tab two.
  • 7:56 - 7:59
    Tab one from this one is going
    to take us back to tab one.
  • 7:59 - 8:02
    Tab three from the first one -- you get it.
  • 8:02 - 8:07
    So we need to reconnect all of these
    so that makes sense, and that it works.
  • 8:07 - 8:13
    Now, if we go to assets, search
    for tabs, find the tabs one.
  • 8:13 - 8:22
    Create a frame, give it a color, play the flow,
    we can see that works, which is pretty amazing.
  • 8:22 - 8:25
    Now let's go into our explorations file here,
  • 8:25 - 8:31
    which is a different page, and
    actually use it in practice.
  • 8:32 - 8:33
    So we search for tabs.
  • 8:33 - 8:36
    We'll drag that in here,
    and I'll search for button.
  • 8:36 - 8:39
    We'll drag that in here, place it outside here.
  • 8:39 - 8:43
    Let's take this frame, add
    a flow starting point.
  • 8:43 - 8:47
    Let's play it, and just see how it works.
  • 8:47 - 8:48
    Like magic!
  • 8:48 - 8:50
    I am just astonished.
  • 8:50 - 8:54
    Like I mentioned before, you can
    check out my videos on Smart Animate
  • 8:54 - 8:56
    and component properties over here.
  • 8:56 - 9:00
    If you want to help out,
    subscribing, commenting, liking,
  • 9:00 - 9:04
    hitting the bell notification button,
    all of these things really help, guys.
  • 9:04 - 9:08
    Now until the next one, have a great
    freaking life, and we'll talk soon.
  • 9:09 - 9:11
    Ciao!
Title:
Figma Interactions for Beginners
Description:

more » « less
Video Language:
English (United States)
Duration:
09:12
captions2 edited English (United States) subtitles for Figma Interactions for Beginners Feb 4, 2025, 11:07 PM

English (United States) subtitles

Revisions