Using overlays in InVision V7
  • 24 Jan 2023
  • 3 Minutes to read
  • Dark
    Light

Using overlays in InVision V7

  • Dark
    Light

Article Summary

This article provides answers for InVision V7

To confirm your version, check the upper right corner of your dashboard. On V6? Check out this article instead.

What are overlays?

An overlay is a link type that lets you link to another screen as an overlay, rather than as a separate destination screen. Overlays can simulate modal windows, drop-down menus, and other on-screen prompts—all without leaving your current screen.

invision-v7-overlay-overview.gif

Adding overlays

To add a screen as an overlay:

  1. Open your prototype and view your desired screen.
  2. At the bottom of the page, open the Build mode (Build mode icon), or use the keyboard shortcut B.
  3. To create a hotspot, click and drag anywhere on the prototype screen.
    Clicking and dragging to create a hotspot in InVision V7
  4. In the pop-up modal, under Link to, click Screen as Overlay.
    Selecting a screen as an overlay
  5. Click the Trigger drop-down and select a trigger type (Click, Double Click, Hover, Drag Right, Drag Left, Drag Up, Drag Down):
    invision-cloud-v7-hotspot-overlay-trigger.png

    Note: If you choose Hover and the hover-triggered screen also includes hotspots, those hotspots must be within the confines of the original hotspot to be accessible. Moving the mouse outside the original hotspot bounds triggers a transition back to the original screen.

  6. In the next drop-down, select the screen to use as an overlay.
    invision-v7-build-mode-select-screen.jpg

    Note: To see a preview of all your screens, click Browse.

  7. Select or create a custom Position.
    invision-v7-build-mode-select-overlay-position.jpg

    Note: If you choose a position that is aligned with an edge (Top Left, Top Center, etc.), you will then notice the option to set a pixel distance from each edge.

  8. Select a Transition type to animate your overlay. For no animation, choose Instant.
    invision-v7-build-mode-select-overlay-transition.jpg
  9. To adjust the opacity of your background layer, hover over the BG field and move the slider.
    invision-v7-build-mode-set-overlay-background-opacity.gif

    Note: The color of this background layer will be pulled from the background color set on the target screen for your overlay. For mobile prototypes, please follow the steps in this article: Why is my background color wrong on my mobile prototype?

  10. Under Scroll behavior, choose None to display the fully-sized overlay, or Scroll to have the overlay scrolling within a specific frame. With Scroll selected, you can enter the display width and height of the overlay.
    invision-v7-build-mode-set-scroll-behaviour.gif
  11. Change additional options, as desired:
    invision-v7-build-mode-additional-overlay-options.jpg
    • Reverse transition on Close link: If selected, your transition will animate both when opening and closing the overlay.
    • Close on clicking outside of overlay: If selected, a click outside of your overlay will return your user to the screen underneath.
    • Fix position of overlay: If selected, your overlay will not scroll along with the rest of the page.
  12. Include hotspot in template, if desired. If you've not yet used hotspot templates, you can create one.
    invision-v7-build-mode-include-hotspot-in-template.jpg
  13. Click Save.

You can now preview your prototype to test your overlay interactions.

FAQ's

Can I link to another screen from my overlay?

Yes, you can set as many hotspots as you want on your overlay screen.

Can I use a custom close button on my hotspot?

Yes. To create a custom close button, create a hotspot with a target destination of Link Back / Close within your overlay screen. When your overlay appears, this hotspot can be used to close the overlay. If combined with the Close on clicking outside of overlay option, viewers can use either method to close the overlay.

Can I use overlays with fixed headers and footers?

Yes. Overlays will appear above fixed headers and footers, and page content will still display behind fixed headers and footers. If you set fixed headers/footers in a screen that is used as an overlay, that setting is respected when displaying the overlay.

Will overlays work on tablet and mobile prototypes?

Yes, overlays will work with tablet and mobile prototypes.

Can I use an overlay within an overlay?

Yes, you can add an overlay hotspot to an existing overlay screen. When you activate the overlay hotspot, the new overlay will appear. However, all overlays are relative to the original screen. That means that the new overlay will appear over the original screen, not over the preceding overlay. When you finally close the overlay, you'll be returned to the original screen as well.

Why doesn’t the background opacity slider do anything?

The background opacity setting for overlays uses the overlay screen’s background color. If no background color is defined or the defined background color is mostly transparent, then the opacity slider won’t have any effect on the opacity of the overlay background. This can be problematic for mobile prototypes where background color can’t be directly set. For more information, check out the article Why is my background color wrong on my mobile prototype?

Why is my overlay sizing incorrect?

Overlay sizing is affected when the parent screen is retina, but the overlay screen is not. To resolve this issue, change the size of either screen to match the other screen in proportion.


Was this article helpful?