brsh

Interactions and flows ​

This page helps you make a design respond to clicks, and link screens into a flow.

Example: a "Buy" button on screen 1 opens screen 2 when the user clicks it.

How to add an interaction ​

  1. Select the layer, such as a button.
  2. Open the Prototype tab in the right panel.
  3. Find the Interactions section. Click Add interaction.
  4. Choose a trigger. Example: On click.
  5. Choose an action. Example: Go to screen.
  6. Choose the target screen.
  7. Choose a transition and its easing.
  8. Click Play in the top bar to test it. See Play and preview.

Triggers ​

You can use these triggers: On click, On double-click, On drag, Mouse enter, Mouse leave, While hovering, Mouse down, Mouse up, While pressing, Key press, Long press, After delay, Variable changes.

Actions ​

You can use these actions: Go to screen, Back, Scroll to, Open overlay, Swap overlay, Close overlay, Toggle overlay, Open link, Set variable, Switch theme, Change to (variant), Jump video to.

An overlay is a layer that opens on top of the screen. Example: a menu or a dialog. For an overlay, you choose where it opens, for example Center or Below the layer.

Transitions ​

Choose one of these: Instant, Dissolve, Smart animate, Push, Move in, Move out, Slide in, Slide out. Some need a direction: Left, Right, Up or Down.

Conditions ​

  • Turn on Only if a variable matches to run an interaction only when a variable has a set value. This shows when the file has variables.
  • On the next interaction with the same trigger, turn on Else (the one above did not run).

How to name a flow ​

A flow is a path through your screens. It has a starting screen.

  1. Select the starting screen.
  2. Open the Prototype tab.
  3. Turn on Flow starting point.
  4. Type a Flow name. Add a Description if you want.

In Play, click Flows to start from any flow.

How to make a screen snap when it scrolls ​

  1. Select a layer that is directly inside a screen. Open the Prototype tab.
  2. Turn on Snap: scrolling that stops near its top settles there.

When scrolling stops, Play moves to the nearest snap point. This works when it is within a third of the window. The HTML export does the same.