For the complete documentation index, see llms.txt. This page is also available as Markdown.

Drag

Let the user move a layer freely with their finger or mouse.

The Interaction Properties popup with the Drag gesture selected

The Drag gesture lets the user pick up a layer and move it around the screen. The layer follows the finger and stays where it is released.

This is useful for patterns like:

  • Free-form decorating, like placing stickers or furniture

  • Moving objects out of the way to reveal what is underneath

  • Tactile, playful moments that do not need an outcome

To check where the layer is dropped and run an action, use Drag and Drop instead.

How it Works

Drag has a single setting, Drop Animation, which plays when the user releases the layer. Choose from:

  • Select Animation... (none, the default)

  • Blink, Bounce, Bubble, Pulse, Rotate, Slide, Shake or Squish

Drag has no Action slot. Switching an existing interaction to Drag clears its action.

The layer starts following the finger as soon as the user presses on it, and keeps following until they let go.

  • The layer is not limited to the artboard. Users can drag it partly or fully off screen.

  • Dragging is ignored while the layer's enter or exit animation is playing.

  • A second finger stops the drag. The layer stays where it was and no Drop Animation plays.

Where You Can Use It

Drag is available on Images, Text, Shapes, Videos, Sequences and Groups. It is not available on Hotspots or on layers inside components.

Setting Up Drag

1

Select a layer and click + in the Interactions section.

2

Set the Gesture to Drag.

3

Optionally, choose a Drop Animation.

4

Preview and drag the layer to test it.

A Press Effect on the layer shows for as long as it is held, which makes a good "picked up" state for draggable items.

Last updated