Skip Navigation

Documentation

Customizing layer visibility

Updated

Note: Images, videos and some instructions on this page may not be accurate. Please bear with us as we update the Docs for Sketch’s new UI.

Custom layer visibility shows or hides a layer when you hover, tap, or press it — which is especially useful when you want to add buttons, menus, or similar interactive elements to your prototype.

Set a layer’s visibility

To customize how a layer appears in a prototype, set custom visibility settings in the Prototyping panel.

  1. Select a layer.

  2. Open the Prototyping panel.

  3. In the Visibility section, click the circle.plus icon.

  4. Choose an Action (Show, Hide, or Toggle) and a Trigger (Hover, Press, or both).

Use Action to set what happens to the layer’s visibility: Show, Hide, or Toggle. The Toggle option changes the layer’s visibility every time you press it in the prototype.

How to enable custom visibility for a layer

Next, choose Hover or Press as a trigger — or select both:

  • Hover changes a layer’s visibility when the cursor is within its bounds.
  • Press changes a layer’s visibility when you press the layer with your cursor or finger (if you’re playing a prototype on the iOS app, for example).

How to assign hover and press triggers to a layer

Once you’ve added custom visibility to a layer, preview your prototype to see the result.

A prototype preview of a component with custom visibility

Did you find this useful?