Time Interactions & Adding Audio (Sound Effects)

Free Adobe XD Tutorial

Master the use of drag, time interactions, sound effects, and keystrokes in Adobe XD while designing a "drag to delete" feature for a Messages app by following this comprehensive tutorial.

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:

Adding a Drag Interaction, Adding a Time Interaction, Adding a Sound Effect, Adding a Keystroke

Exercise Preview

preview messages

Exercise Overview

In this exercise, you’ll design a “drag to delete” feature for a Messages app. You’ll use drag interactions, timed interactions, and define a keystroke.

UX & UI Design Certificate: Live & Hands-on, In NYC or Online, 0% Financing, 1-on-1 Mentoring, Free Retake, Job Prep. Named a Top Bootcamp by Forbes, Fortune, & Time Out. Noble Desktop. Learn More.

Getting Started

  1. In Adobe XD, go to File > Open from Your Computer or hit Cmd–Shift–O (Mac) or Ctrl–Shift–O (Windows).
  2. Navigate into Desktop > Class Files > Adobe XD Class and double–click on Messages App.xd to open it.

    We’ve already created the layout and graphics for this design, so let’s focus on prototyping the functionality that will lets us swipe to delete the Erin Steed message. This functionality and animation can’t be built entirely into a component, so we’ll choose one message to show it off on. This will be good enough to show the client and developer how we want the feature to work.

  3. In the Toolbar, choose the Select tool select tool.
  4. Click on the red trash can graphic to select it.
  5. Cut it by hitting Cmd–X (Mac) or Ctrl–X (Windows).
  6. Now we need to put it into the Erin Steed message row, hidden off screen, so we can swipe across and reveal the hidden red bar. Double–click on the Erin Steed message row to go into the component instance.
  7. Paste the red bar by hitting Cmd–V (Mac) or Ctrl–V (Windows).
  8. As shown below, hold Shift and drag the red bar to the right so its edge touches the edge the artboard (it will snap into place).

    position delete row

  9. Click in an empty area of the canvas to make sure nothing is selected. The red bar will disappear but don’t worry!
  10. Select the artboard by clicking on the artboard name Messages (at the top left of the artboard).
  11. Duplicate it by hitting Cmd–D (Mac) or Ctrl–D (Windows).
  12. Rename the new artboard by double–clicking the Messages – 1 name at the top left and change it to Delete.
  13. Drag the Delete artboard down slightly (by dragging its name to move it).

    When things overlap in a moment this will make it easier to see what’s going on.

  14. On the Delete artboard, drag the Erin Steed message row to the left so you reveal the entire red bar. You should end up with it looking like this:

    delete arboard design complete

    NOTE: The first artboard shows the initial design. The second artboard shows how it will look at the end of the drag.

Adding a Drag Interaction

  1. At the top left of the window click Prototype.
  2. In the first artboard Messages, select the Erin Steed message row.
  3. A blue arrow will appear to the right of the red bar. Drag the blue arrow to the Delete artboard.
  4. In the Property Inspector, set:

    • Trigger: Drag
    • Type: Auto-Animate
    • Destination: Delete
    • Easing: None
  5. At the top right of the window, click on Desktop Preview desktop preview or hit Cmd–Return (Mac) or Ctrl–Enter (Windows).
  6. Drag right to left over the Erin Steed message row to reveal the red delete bar. If you don’t drag very far it will snap back to the initial appearance, but if you drag far enough it will snap so the full red bar is shown.
  7. Close the preview window.

Adding a Time Interaction

We need the red delete row to disappear without us doing any additional interaction. How do we tell XD to do something automatically? With a time interaction!

  1. At the top left of the window, click on Design.
  2. Click on the Delete artboard’s name to select it.
  3. Duplicate it by hitting Cmd–D (Mac) or Ctrl–D (Windows).
  4. Double–click on the artboard name Delete – 1 and change it to Done.
  5. In the Done artboard, select the red delete row.
  6. Drag the bottom resize handle up so the red bar’s height becomes nothing (the trash can icon will still be partially visible, but the next step will take care of that).

    reduce height of delete row

  7. In the Property Inspector, set Opacity opacity icon to 0%.
  8. The lower messages must be moved up to fill the empty space. We’ve grouped all those messages, so drag them up (hold Shift as you drag) to fill the gap.
  9. At the top left of the window click Prototype.
  10. Select the Delete artboard by clicking its name.
  11. A blue arrow will appear on the right side of the artboard. Drag the blue arrow to the Done artboard.
  12. In the Property Inspector, set:

    • Trigger: Time
    • Delay: 0 s
    • Type: Auto-Animate
    • Destination: Done
    • Easing: None
    • Duration: 0.2 s
  13. Click in an empty area of the canvas to sure nothing is selected.
  14. At the top right of the window, click on Desktop Preview desktop preview or hit Cmd–Return (Mac) or Ctrl–Enter (Windows).
  15. Drag right to left over the Erin Steed message row and release to see the red bar appear and then animate away!
  16. Close the preview window.

Adding a Sound Effect

  1. Select the Done artboard by clicking its name.
  2. A blue arrow will appear on the right side of the artboard. Click the blue arrow (don’t drag this time, just click it).
  3. In the Property Inspector, set:

    • Trigger: Time
    • Delay: 0 s
    • Type: Audio Playback
    • Audio File: Click on the menu and choose Add New File. Navigate into Desktop > Class Files > Adobe XD Class > Sounds and double–click on trash.wav to choose it.
  4. Click in an empty area of the canvas to sure nothing is selected.
  5. Make sure your speakers are on and loud enough to hear sounds.
  6. At the top right of the window, click on Desktop Preview desktop preview or hit Cmd–Return (Mac) or Ctrl–Enter (Windows).
  7. Drag right to left over the Erin Steed message row and release. The red bar appear will appear, animate away, and you should now hear a trash sound effect!
  8. Close the preview window.

Adding a Keystroke

Finally, let’s add a keystroke to undo the message deletion.

  1. Select the Done artboard by clicking its name.
  2. A blue plus will appear on the right side of the artboard. Drag the blue plus to the Messages artboard.
  3. In the Property Inspector, set:

    • Trigger: Keys & Gamepad
    • Key: Click into the field and press Cmd–Z (Mac) or Ctrl–Z (Windows)
    • Type: Auto-Animate
    • Destination: Messages
    • Easing: Ease Out
    • Duration: 0.2 s
  4. Click in an empty area of the canvas to sure nothing is selected.
  5. At the top right of the window, click on Desktop Preview desktop preview or hit Cmd–Return (Mac) or Ctrl–Enter (Windows).
  6. Drag right to left over the Erin Steed message row to delete the message.
  7. Hit Cmd–Z (Mac) or Ctrl–Z (Windows) to undo and the Erin Steed message should reappear!

Audio in the Libraries Panel

The first time you add a sound it’s embedded into your XD file. It can be seen in the Audio File menu when choosing sounds, and also in the Libraries panel libraries panel icon under Audio.

In the Libraries panel libraries panel icon, you can Ctrl–click (Mac) or Right–click (Windows) on a sound and choose Delete if you’re not using it and want it to reduce the filesize or the XD file.

Free UI Kits

This Messages app was part of Apple’s iOS UI Kit they provide for free to make it easier to design iOS apps. To download it, in Adobe XD choose File > Get UI Kits > Apple iOS (and notice there are other UI Kits there too).

Apple’s default iOS system font is called San Francisco (SF for short). For this exercise we replaced San Francisco with Arial to avoid having missing fonts, but when using Apple’s UI Kit you should download San Francisco from developer.apple.com/fonts and install it on your computer.

photo of Dan Rodney

Dan Rodney

Dan Rodney has been a designer and web developer for over 20 years. He creates coursework for Noble Desktop and teaches classes. In his spare time Dan also writes scripts for InDesign (Make Book JacketProper Fraction Pro, and more). Dan teaches just about anything web, video, or print related: HTML, CSS, JavaScript, Figma, Adobe XD, After Effects, Premiere Pro, Photoshop, Illustrator, InDesign, and more.

More articles by Dan Rodney

How to Learn Adobe XD

Master Adobe XD with hands-on training. Adobe XD is a design application used to make interactive prototypes for web, UX, and UI design. 

Yelp Facebook LinkedIn YouTube Twitter Instagram