Creating a Clickable Prototype with Craft (by InVision)

Free Sketch Tutorial

Learn how to transform a Sketch design into a clickable prototype using InVision in this comprehensive tutorial, covering topics such as installing Craft, creating overlays and fixed headers, and sharing the prototype.

This exercise is excerpted from Noble Desktop’s past web design training materials and is compatible with Sketch updates through 2021. Noble Desktop now teaches 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.

Note: These materials are provided to give prospective students a sense of how we structure our class exercises and supplementary materials. During the course, you will get access to the accompanying class files, live instructor demonstrations, and hands-on instruction.

Topics covered in this Sketch tutorial:

Installing Craft, Creating an InVision prototype & Linking artboards, Creating overlays & fixed headers, Updating the design, Sharing the prototype

Exercise Preview

prototyping.jpg" alt="preview invision prototyping">

Exercise Overview

In this exercise, you’ll learn how to turn a Sketch design into a clickable prototype using InVision. You can click between screens and see how the website or app would work. This is a great way to show a design to clients, or do user testing. As you saw in a previous exercise, Sketch does have native prototyping, but it’s not “yet” as fully featured as prototyping with InVision’s Craft plugin for Sketch (although the makers of Sketch have promised they will be add more prototyping features).

Graphic 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.

Creating an InVision Account

If you have an InVision Account, skip ahead to the next section.

You’ll need an InVision account to do this exercise. You can create a free account, which is limited to 3 projects at a time. You can delete a project (which InVision calls a prototype) and create a new one, but if you want more than 3 active prototypes you’ll have to upgrade to a paid plan. A free account will work fine for this exercise. In a web browser, go to invisionapp.com/signup and create a free account.

During the InVision signup, choose Solo (not Teams) if they ask you.

Installing InVision’s Craft Plugin into Sketch

If you’re in a Noble Desktop classroom, we should already have Craft installed, so skip ahead to the next section.

InVision is a web app (it runs in a web browser) which creates interactive prototypes of designs from Sketch and other apps. InVision integrates directly into Sketch using their plugin called Craft. Craft adds multiple features to Sketch, including the ability to create prototypes directly within Sketch and then upload them to InVision! If you’re in a Noble Desktop class, the Craft plugin should already be installed so you can skip ahead to the next section.

  1. If Sketch is open, quit it now.
  2. Go to invisionapp.com/craft
  3. Download the Craft plugin installer as follows:

    • If you are not logged into your InVision account, you’ll have to enter your email address to download it. If the download doesn’t start automatically, check your email for a download link.
    • If you’re logged into your InVision account, you should see a download button.
  4. Run the Craft installer.
  5. The CraftManager app was installed. This lets you install and update the Craft plugins into Sketch. It lives in the menubar. If CraftManager didn’t appear, click on the Craft icon craft icon in the menubar to see it.

    craftmanager

  6. In the CraftManager app, if the plugins weren’t automatically installed, click Install to install the plugins into Sketch.
  7. Launch Sketch.

Creating a Clickable Prototype with InVision’s Craft

You can do prototyping in InVision’s web app, or using InVision’s Craft plugin, we create interactions within Sketch. Then we sync that work to the InVision web app so we can share the prototype (or anything else that’s not possible to do within Sketch). Let’s see how this works.

  1. In Sketch, go to File > Open Local Document.
  2. Navigate into Desktop > Class Files > Sketch Class and double–click on InVision Craft Prototyping.sketch to open it.
  3. Let’s start adding prototype interactions. Make sure you can see the Home Page artboard as well as the Autumn Collection artboard to its right.
  4. Let’s tell a button to take us to another screen (artboard). On the Home Page, select the black Shop New Collection button.
  5. To add a link we use a keystroke. Hit the K key (it used to be C for Craft but Sketch took that keystroke for Components, so they switched to K).

    NOTE: This is the same as choosing Craft > Prototype > Add Hotspot to Layer.

  6. An arrow will appear so you can choose what you want to link to. Click on the Autumn Collection artboard.
  7. Set Gesture to Tap.

    NOTE: The Desktop Click gesture does not give you the transitions we get with the Mobile Tap gesture.

  8. Set Transition to Slide Left.
  9. Click Add Link.
  10. Let’s create one more link before we preview this. Make sure you can see the Autumn Collection artboard as well as the Product Page to its right.
  11. On the Autumn Collection artboard select the Distressed Denim Jacket photo. The photo and type will be selected because they are all in a symbol.
  12. Hit the K key.
  13. Click on the Product Page artboard.
  14. Make sure Gesture is set to Tap.
  15. Set Transition to Slide Left.
  16. Click Add Link.
  17. Let’s see the prototype in action. The selected artboard will be loaded into the preview, so make sure to click on something (it doesn’t matter what) on the Home Page artboard.
  18. On the right of the window is Sketch’s Inspector. To the left of that is a column of icons for the Craft plugin. As shown below, click the Player icon invision craft player icon.

    invision click player button

  19. If asked to Save, do so. (Do this every time, we won’t remind you.)
  20. In the preview window, click on Shop New Collection to go to the next screen.
  21. Click on the Distressed Denim Jacket photo or type to go to the next screen. Cool!
  22. Let’s see that again. Press the Left Arrow key twice so you end back on the Home Page (or use the menu at the top of the preview window).
  23. Click on Shop New Collection and then the Distressed Denim Jacket photo. Cool!
  24. Close the preview window.
  25. Click outside the artboards so nothing is selected.
  26. Click the Player button invision craft player icon again.
  27. Notice how the Nav Menu appears. That’s because it’s the top artboard in the Sidebar (the panel on the left of the screen).
  28. Close the preview window.
  29. In the Sidebar on the left of the screen, select the Nav Menu artboard.
  30. Choose Arrange > Send to Back.
  31. Click outside the artboards so nothing is selected.
  32. Click the Player button invision craft player icon again.
  33. Notice the Home Page now appears first (because it’s the top artboard).
  34. Close the preview window.

Wiring Up the Navbar & Creating a Nav Menu Overlay

We need a link to get back to the Home Page from any screen. The Pulse logo is on all screens, and we can link them all by adding the link inside the symbol.

  1. In any of the navbars, double–click on the Pulse logo to edit the navbar symbol.
  2. Click on a blank area of the canvas to deselect.
  3. Select the Pulse logo.
  4. Hit the K key.
  5. In the buttons that appear at the top of Sketch’s canvas, click on Artboard.
  6. In the options that appear:

    • The top menu should already be set to Link to a screen.
    • Click on the Select Artboard menu below that (don’t worry that it’s grayed out), and choose Home Page.
    • Set Gesture to Tap.
    • Set Transition to Slide Right.
    • Click Add Link.
  7. We need a way to show our navigation menu. Unlike the other links we made, the content on the Nav Menu artboard should overlay the current screen, so we can see through the transparent menu background to the current screen’s content.

    Select the 3-lined hamburger menu icon to the left of the logo.

  8. Hit the K key.
  9. In the buttons that appear at the top of Sketch’s canvas, click on Artboard.
  10. In the options that appear:

    • Change the top menu to Link as Overlay.
    • Click on the Select Artboard menu below that (don’t worry that it’s grayed out), and choose Nav Menu.
    • Then set the following:

      craft menu overlay options

    • Click Add Link.

  11. Click the Back to Instance button. (If the Back to Instance button has disappeared, so at the top of the Layers panel click on the Screens page.)
  12. On the Nav Menu artboard, click once on the navbar to select the symbol.
  13. In the navbar symbol, our 3-lined hamburger menu icon is a symbol. We also made a close button symbol that’s the same exact size as the menu icon so we’ll be able to swap it out as an override (as we learned about in a previous exercise).

    In the Inspector, under Overrides click on the menu below Menu Icon and chose close (if you don’t see it, look in This Document > icon > close).

  14. We need a way to close the nav menu. We can’t add the Craft link within the close button symbol because it won’t come through (the plugin does not integrate deeply enough into Sketch). Instead we can draw an invisible hotspot over it and set a different action.

    Zoom in closer on the X close button on the Nav Menu artboard.

  15. In the Toolbar, click the Insert button insert button and select Hotspot.
  16. Drag a rectangle over the X close button (don’t worry about exact position and size yet, you’ll adjust that in a moment).
  17. Hit the Esc key to cancel Sketch’s native prototyping link.
  18. Adjust the size and position of the hotspot over the X close button. You won’t see this shape in the final design, but it defines the size of the clickable/tappable area.
  19. With the hotspot selected, hit the K key (to add a Craft prototyping link).
  20. In the buttons that appear at the top of Sketch’s canvas, click on Link Back/Close, then set the following:

    • Set Gesture to Tap.
    • Set Transition to Slide Up.
    • Click Add Link.
  21. Let’s see the prototype in action. Click outside the artboards so nothing is selected.
  22. Click the Player button invision craft player icon.
  23. Click on the menu icon (3 lines) at the top left of the navbar to open the menu.
  24. Notice that the transparency we used on the black background has been maintained so you can see through the menu to see the current page behind it.
  25. Click the close button (X) to close the menu.
  26. Click on the Shop New Collection button to go to the next screen.
  27. Click the Pulse logo to go back to the Home Page.
  28. Close the preview window.
  29. Choose View > Zoom To > Fit Canvas.

Creating an InVision Project & Uploading Artboards

To share the prototype, and to do some things you can’t do directly in Sketch, we must upload our work into an InVision project.

  1. If you have a selection, Craft sync will only upload the selected artboard(s). We want to upload all artboards, so click outside of the artboards so none are selected.
  2. In the Craft panel’s column of icons, click the Sync icon invision craft sync icon.

    invision open sync panel

  3. The CraftManager app will open. If it asks you to sign in, do so now.
  4. We need to create an InVision project (called a prototype), so set the following:

    • Publish to: Prototype
    • Choose Create new, and name it Pulse
    • Set the device type to iPhone.
    • Make sure All artboards on page is selected.
    • Click Publish.
  5. Let’s see what we just synced to the InVision web app. After it’s done uploading, click on the project name to open it in a web browser.

    If you closed the CraftManager app before doing so, in Sketch, click on the Sync icon invision craft sync icon again. In the CraftManager app that opens, click Open on web.

  6. A web browser should open and you should see that each artboard in Sketch was turned into an InVision screen.

    If you’re asked to log in, go ahead and log in. After logging in, you may need to go back to Sketch, click on the Sync icon, and click the Open in web button.

  7. Hover over Home Page and click View Screen.
  8. If you see tips, click Skip Tips.
  9. The design is opened in a mobile phone preview. Scroll down to see the part of the design that’s too tall to fit within the phone.
  10. Scroll back to the top and notice the design is slightly cut off by the status bar containing the time and battery indicator. Let’s fix that.
  11. Towards the bottom right of the window, click the ••• button (may be a gear icon if you’re still on an older version of InVision) to open the Configuration settings.
  12. Check on My design starts below the status bar.
  13. Click Save.

Creating a Fixed Header

  1. Scroll down the home page to see the navbar scrolls with the page and disappears.

    We’d like the navbar to be fixed to the top of the screen, so it’s always visible. We can’t do that inside Sketch, but we can do it here in InVision.

  2. At the bottom of the window below the preview, click the Build mode B button invision build mode or hit the B key.
  3. Scroll to the top of the design, and notice the Fixed Header option at the top right of the design. Next to Fixed Header is a 3-lined grab handle. Drag it down to the bottom of the black navbar (at 120 PX).

    TIP: You can click on the handle and type in the position if you want to be exact.

  4. We need to repeat this on the other screens. Hit the Right Arrow key to go to the Autumn Collection screen.
  5. Pull the Fixed Header grab handle down again.
  6. Hit the Right Arrow key one more time to go to the Product Page.
  7. Drag the Fixed Header grab handle down again.
  8. Below the preview, click the Play mode P button invision preview mode or hit the P key.
  9. Scroll through the design and notice the navbar stays fixed at the top of the design.
  10. In the navbar, click the Pulse logo to return to the home page.

Updating the Design

We need to update some text. Luckily it’s easy to push design changes from Sketch to InVision, and we don’t lose any of the prototyping we’ve done with Craft or InVision.

  1. Keep the web browser open so we can come back to InVision in a moment.
  2. Switch back to Sketch.
  3. If you see all the Craft links, hit the X key to hide them.
  4. On the Autumn Collection artboard, double–click on the text New Autumn Attire and change it to New Fall Fashion.
  5. Click the Sync button invision craft sync icon.
  6. It detects which artboards have changed, so click Publish.
  7. Switch back to InVision in your web browser.
  8. If you’re not viewing the Autumn Collection artboard, use the left/right arrow keys to get there (or click through the prototype).

    The updated text New Fall Fashion should automatically appear, but you may have to wait a moment for it to load. Notice that the prototype still works. Nice!

Show, Hide, Edit, or Remove Craft Links (from within Sketch)

  • Show or Hide Links: Press the X key to toggle the display of links. or choose Craft > Prototype > Toggle View Hotspots.
  • Edit a Link: Click the blue circle at the start of a link.
  • Remove a Link: Click the blue circle at the start of a link. Click Remove.

Sharing an InVision Prototype

  1. When sharing a prototype on the InVision website, you want to be viewing the first screen you want people to start on. If you’re not viewing the Home Page, click on the Pulse logo to go there.

    NOTE: If you ever need to switch screens, at the bottom left of the page is the project name Pulse. To the right of that you’ll see the name of the current artboard/screen. Click the artboard name and you can choose the desired artboard. (The screen selector panel will close when you mouse outside of it.)

  2. At the bottom right of the InVision window, click Share.
  3. Here you can invite people to collaborate on the prototype, but we just want a link to send to people. Click the Public tab and click Get Public Link (older versions don’t have that tab, just look for public share link).

    Next to the public link click Copy (older versions copied the link when you clicked public share link).

  4. You can share this link with clients or users for testing. Let’s see what their experience is like. Open a new browser tab.
  5. Paste the link and hit Return to load the page.
  6. Interact with the prototype and notice that everything should work as you made it!
  7. Close the browser tab so you’re back in your InVision prototype.
  8. Close the share dialog.

Deleting an InVision Prototype

The free InVision account can only have one active prototype. To create a new prototype you’ll have to delete this practice prototype first.

  1. To get back to the list of InVision prototypes/projects, click the InVision logo at the bottom left.

  2. In the list of projects, hover over Pulse and click the ••• button.
  3. In the menu that appears, click Delete and then confirm the deletion.

Logging Out of Your InVision Account

If you’re on a classroom computer (not your own work/personal computer), you should log out of your InVision account in Sketch.

  1. In the menubar at the top right of your screen, click on the Craft icon craft icon.
  2. At the top right of the CraftManager window, click the gear icon and choose Sign Out.

How to Learn Web Design

Master web design with hands-on training. Web design is the creative process of building functional, attractive websites with tools like HTML/CSS, JavaScript, WordPress, and Figma and an understanding of user interface (UI) design principles.

Yelp Facebook LinkedIn YouTube Twitter Instagram