Explore a comprehensive Adobe XD tutorial that covers creating a working slideshow prototype, adding tap interactions, keystrokes, and the ability to drag. Learn how to adjust slides, set up the slides, make the arrow buttons work, change the easing, and add keystrokes for faster navigation. The tutorial also offers optional bonus content on adding the ability to tap.
This exercise is excerpted from Noble Desktop’s past web design training materials and is compatible with Adobe XD updates through 2020. We now teach Figma as the primary tool for web and UX & UI design. To learn current skills in web design, check out our Figma Bootcamp and graphic design classes in NYC and live online.
Topics covered in this Adobe XD tutorial:
Creating a Working Slideshow Prototype, Adding Tap Interactions, Adding the Ability to Drag, Adding Keystrokes
Exercise Preview
Exercise Overview
In this exercise, you’ll create a slideshow with 3D transforms, and add functionality to make it work with arrow buttons to advance slides, the ability to drag between slides, and keystrokes too!
Getting Started
- In Adobe XD, go to File > Open from Your Computer or hit Cmd–Shift–O (Mac) or Ctrl–Shift–O (Windows).
- Navigate into Desktop > Class Files > Adobe XD Class and double–click on Slideshow.xd to open it.
- In the Toolbar, choose the Select tool
.
Setting Up the Slides
Scrollable areas like we previously saw are great for simple scrolling, but we want to make a slideshow that animates between slides, uses keystrokes, taps, and scrolls. So we’ll need to set up different artboards for each state of our slideshow.
- Select the artboard by clicking on the artboard name 1 (at the top left of the artboard).
- Duplicate it by hitting Cmd–D (Mac) or Ctrl–D (Windows) two times to create a total of 3 artboards.
-
Rename the artboards by double–clicking the artboard name at the top left. Change their names to:
- 2 for the middle artboard.
- 3 for the right artboard.
-
On artboard 1:
- Select the left arrow.
- Press the 3 key on your keyboard to quickly set the Opacity to 30%.
-
On artboard 3:
- Select the right arrow.
- Press the 3 key on your keyboard to quickly set the Opacity to 30%.
Adjusting the First Slide
- On artboard 1, select the center beach photo.
- In the Property Inspector, to the right of Transform click the 3D Transforms icon
to toggle it on.
-
In the Property Inspector’s Transform section:
- Set Z to -300 and don’t miss the minus part!
- Set Y Rotation
to -20° and don’t miss the minus part!
- On artboard 1, Ctrl–click (Mac) or Right–click (Windows) on the rainbow photo and choose Reset 3D Transforms.
- Select the 3 photos, but do NOT select the arrows!
In the Property Inspector, set X to 340
Adjusting the Last Slide
- On artboard 3, select the center beach photo.
-
In the Property Inspector’s Transform section:
- Set Z to -300 and don’t miss the minus part!
- Set Y Rotation
to 20°
- On artboard 3, with the center beach photo selected choose Object > Arrange > Bring to Front.
- On artboard 3, Ctrl–click (Mac) or Right–click (Windows) on the whale photo and choose Reset 3D Transforms.
- Select the 3 photos, but do NOT select the arrows!
- In the Property Inspector, set X to -174 and don’t miss the minus part!
In the Property Inspector, to the right of Transform click the 3D Transforms icon
to toggle it off.
Making the Arrow Buttons Work & Changing the Easing
- At the top left of the window click Prototype.
- We’re going to wire up the arrows on artboard 1, so make sure you can see the arrows, and at least part of artboard 2 (you don’t need to see the whole thing).
- On artboard 1, select the right arrow.
- A blue arrow will appear on it. Drag the blue arrow to artboard 2.
-
In the Property Inspector, set the following:
- Trigger: Tap
- Type: Auto-Animate
- Destination: 2 (should already be set)
- Easing: Ease Out
- Duration: 0.5 s
- At the top right of the window, click on Desktop Preview
or hit Cmd–Return (Mac) or Ctrl–Enter (Windows).
-
Click the right arrow to see the animation to the next slide.
The effect is cool, but let’s see how other easings change the feeling of the animation.
- Close the preview window.
- With the right arrow on artboard 1 still selected, in the Property Inspector change Easing to Snap.
- At the top right of the window, click on Desktop Preview
or hit Cmd–Return (Mac) or Ctrl–Enter (Windows).
-
Click the right arrow to see the animation to the next slide.
If you want to see it again, we have not wired up the arrow buttons on screen, but you can press the Left Arrow key on your keyboard to go back to the previous artboard and click the arrow button again.
The Snap easing makes a fast transition that overshoots a bit past where it wants to go and then comes back. This creates a bit of a bounce that adds some liveliness to the animation.
- Try out the other easing types such as Wind Up and Bounce.
- When you’re done experimenting set Easing back to Ease Out.
- Now let’s finish wiring up the arrows. On artboard 2 select the left arrow.
- Drag the blue arrow to artboard 1.
-
In the Property Inspector, make sure the following are set:
- Trigger: Tap
- Type: Auto-Animate
- Destination: 1
- Easing: Ease Out
- Duration: 0.5 s
-
On artboard 2:
- Select the right arrow.
- Drag the blue arrow to artboard 3.
-
On artboard 3:
- Select the left arrow.
- Drag the blue arrow to artboard 2.
- Click in an empty area of the canvas to sure nothing is selected.
- At the top right of the window, click on Desktop Preview
or hit Cmd–Return (Mac) or Ctrl–Enter (Windows).
- Test out all the arrows and see the entire slideshow should be working!
Close the preview window.
Adding Keystrokes
Using keystrokes would make it faster to navigate this slideshow, and we can define them in XD!
- On artboard 1 select the right arrow.
- Drag the blue plus to artboard 2.
-
In the Property Inspector, set:
- Trigger: Keys & Gamepad
- Key: Click into the field and press your Right Arrow key
- Type: Auto-Animate
- Destination: 2
- Easing: Ease Out
- Duration: 0.5 s
- Click in an empty area of the canvas to sure nothing is selected.
- At the top right of the window, click on Desktop Preview
or hit Cmd–Return (Mac) or Ctrl–Enter (Windows).
-
Press your Right Arrow key and the slideshow should animate to the second slide.
NOTE: Normally in the preview window the left/right arrow keys work to go to the previous/next slide, but they do so by pushing one artboard over to go to the other. Our keystroke should override that normal action.
- Close the preview window.
-
On artboard 2 select the left arrow and then:
- Drag the blue plus to artboard 1.
- In the Property Inspector, below Key, click into the field and the press your Left Arrow key.
-
On artboard 2 select the right arrow and then:
- Drag the blue plus to artboard 3.
- In the Property Inspector, below Key, click into the field and the press your Right Arrow key.
-
On artboard 3 select the left arrow.
- Drag the blue plus to artboard 2.
- In the Property Inspector, below Key, click into the field and the press your Left Arrow key.
- Click in an empty area of the canvas to sure nothing is selected.
- At the top right of the window, click on Desktop Preview
or hit Cmd–Return (Mac) or Ctrl–Enter (Windows).
- Test out the right and left arrow keys to see that you can keyboard navigate between all the slides!
Close the preview window.
Adding the Ability to Drag
In a previous exercise we saw how to create scrollable areas. We’re animating between different states, so we can’t use that type of scrollable area. Instead we’ll use a drag interaction.
- On artboard 1 select the rainbow photo.
- Drag the blue arrow to artboard 2.
-
In the Property Inspector, set:
- Trigger: Drag
- Type: Auto-Animate
- Destination: 2
- Easing: None
-
On artboard 2:
Select the beach photo.
Drag the blue arrow to artboard 3.
-
On artboard 3:
- Select the whale photo.
- Drag the blue arrow to artboard 2.
- Click in an empty area of the canvas to sure nothing is selected.
- At the top right of the window, click on Desktop Preview
or hit Cmd–Return (Mac) or Ctrl–Enter (Windows).
- Drag right to left on the rainbow photo to go to slide 2.
- Drag right to left on the beach photo to move to slide 3.
- Drag left to right on the whale photo to go back to slide 2.
-
On slide 2 we can’t go back to slide 1 because we only have a drag interaction to advance to slide 3.
As of this writing, XD cannot add multiple drag interactions to a single element. So while this isn’t perfect, it’s good enough to get the idea across to clients, user tests, and developers.
On the Adobe XD User Voice website many people have upvoted a feature request for this. Visit tinyurl.com/xd-drag-mu to upvote and you’ll help influence the future of XD. You’ll also be notified of changes (such as Adobe completing the feature).
Close the preview window.
Optional Bonus: Adding the Ability to Tap
If you get done early and want to add even more functionality, you could add a Tap interaction to the 3D transformed photos that would let you tap on them to go to the next slide. You’ll select the appropriate photo, drag the blue arrow to the next slide, and this time use a Tap Trigger.
Remember You’re Designing, Not Building
It can be tempting to want to build all the functionality exactly the way you want the website or app work, but remember XD is only designing it, not building the final product. For if you have 10 slides, you do not have to make them all work. Once people see the first 2–3 slides they get the idea of how they work.
So focus on designing the various appearances, interactions, and animations. Don’t get caught up in the busy work and tediousness of making every little tiny detail work. In the end, the XD file is only a blueprint for developers to follow when they turn your design into code.