Create a Flyout Menu in Adobe XD
With states now available, all sorts of fun micro-interactions can be created without needing separate artboards. Let’s take a look at how we can create this flyout effect in just a few minutes.
WHAT YOU’LL LEARN IN THIS VIDEO
How to create basic elements
Converting multiple layers into a component
Creating additional component states
Modifying your states
Wiring up states from a single artboard
Dive into Component States
Component States in Adobe XD allows you to save elements for future use and create additional versions of your buttons, toggles, fields, and more.
Download my latest UI kit to get started.
Bring your charts to life
Let’s face it. Charts are typically not the most exciting elements to design and work with, so in this videos, let’s take a look at how Adobe XD’s Auto-Animate can add a touch of life to your designs.
+ VIEW TRANSCRIPT
Hey, everyone – I’m Howard Pinsky – Senior XD Evangelist at Adobe. With states now available, all sorts of fun micro-interactions can be created without needed separate artboards. Let’s take a look at how we can create this flyout effect in just a few minutes.
Alright, here we are in Adobe XD with a Behance-style design, where I’ve been tinkering with creating card popouts using states. I’ll get to that in another video. But I want to create a navigation bar at the bottom that contains a flyout menu when the add button is pressed.
To start that process, let’s add in some icons, which I have over in my assets panel. One for home, gallery, profile, and settings. And since this is the profile screen, I’ll set the icon’s fill to blue. I’ll then make sure that the end icons line up with my guides, then pop the other two somewhere around here for now. I’ll align them in just a moment. Next, I’ll need to create the button in the middle which will eventually fly out. For that, I’ll start with a simple ellipse that’s just slightly larger than the other icons, and I’ll set the color to the blue I have saved.
I’m also going to add a very slight border with a decreased opacity which will enlarge in the second state. Finally, while I could very easily create a plus button myself, I’m feeling extra lazy this morning, so I’ll drag one in. With the add button now in place, I’m going to quickly group the elements, then select all the icons that make up the navigation, and then align them vertically, and distribute horizontally.
Beautiful. Before we dive into components, we need two more buttons, and to make that process a touch easier, I’ll duplicate the add button out twice for the camera and photo gallery. Now since the icons within these groups are components, I can very easily drag new ones right on top of them to swap them out.
Great, now that the additional icons are set up, I’ll want to make sure that they are behind the add button. Hopping into my layers panel, I’m going to first name my groups so that everything is nicely organized, then throw the add button to the top of the stack. I can now move the camera and gallery groups in place and out of sight.
Wonderful, we’re now ready to bring this to life. Since all three of our buttons will be part of the interaction, we’ll want to make sure they’re all selected, then I’ll turn them into a single component – either with the Command/CTRL K shortcut, or the plus button within the properties inspector. I now have a default state, and to set up the end point for our interaction, I’ll go ahead and create a second – which I’ll name “Flyout”.
With the second state now created and active, I can start working on the end point. Since these buttons will be the focus, I’ll want to move them up and enlarge them a touch, and to make sure none of the paths get distorted, I’ll turn off responsive resize first. I’m also going to dive into the add button to make a few changes. First, I’ll increase the size of the border I added a bit earlier, then select the plus icon and rotate it 45 degrees so that it turns into an X.
Great, now I can select the camera and gallery buttons and move them up into place. You know what, in some situations, these buttons may be a bit tough to see. Since we’re able to add and remove elements from components, let’s add in an overlay. With my rectangle tool, I’ll draw out a shape from the top of the screen down to the navigation bar. I’ll set the color to black, then to get a bit fancy, turn on background blur. The settings can then be tweaked to get the exact result I’m looking for. In this case, I’ll drop the amount of blur and brightness, then increase the effect opacity so that it’s not too transparent. Finally, I’ll want to make sure this overlay layer is behind all of my buttons.
Both states are now complete, and I can cycle through them within the properties inspector. But of course, they now need to be wired up. Switching over to prototype mode, I’ll select the button then instead of dragging the wire to a whole other artboard, which was required previously, I’ll simply click on it. This will then let me set up the properties over to the right. I’ll go with tap as the Trigger and make sure that auto-animate is the action. Now I can select an individual state to transition to, in this case, the Flyout. And finally for my easing options, I’ll go with Snap, with a duration of 0.4 seconds.
Before I preview this, I’m quickly going to switch to the Flyout state, select the close button, and set up an interaction back to the default.
Perfect. Let’s see this in action. The play button at the top will launch the preview, where I can click on the add button to reveal the others, then click on close to hide them.
And that’s how you can create a flyout interaction using component states in Adobe XD. For more tips & tricks, make sure to subscribe and head over to letsxd.com. I’ll see you soon.