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
- Select the layer, such as a button.
- Open the Prototype tab in the right panel.
- Find the Interactions section. Click Add interaction.
- Choose a trigger. Example: On click.
- Choose an action. Example: Go to screen.
- Choose the target screen.
- Choose a transition and its easing.
- 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.
- Select the starting screen.
- Open the Prototype tab.
- Turn on Flow starting point.
- 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
- Select a layer that is directly inside a screen. Open the Prototype tab.
- 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.