Motion
This page helps you make layers move. You can use a ready style or draw your own keys on a timeline.
Example: a card slides up when its screen opens.
How to add motion to a layer
- Select the layer.
- In the right panel, open the Prototype tab and find the Motion section.
- Click Choose a style… under Add motion. Pick one, such as Slide up or Fade in.
- Set Trigger: On load, On hover, On click or On scroll.
- Set Duration and Delay.
- Click the play button in the section header to preview it.
To remove the motion, click the bin button in the section header.
How to stack styles
Under Add style, click Choose a style… to put more styles on one layer. Example: Slide up and Fade in together.
Styles include Fade in, Fade out, Slide up, Slide down, Slide left, Slide right, Scale in, Scale out, Pop, Rotate, Resize width, Resize height and Shake.
Settings
- Easing: Linear, Ease in, Ease out, Ease in and out, three "back" curves, Hold, and Gentle, Quick, Bouncy and Slow springs. You can drag the handles of a custom curve.
- Loop: Play once, Loop or Ping-pong.
- Stagger: appears when the layer has more than one child. Each child starts a little later than the one before.
- You can bind duration, delay and easing to variables. See Variables and themes.
How to open the timeline
- Select an animated layer.
- Click the Timeline button in the Motion section header.
The timeline opens under the canvas. The canvas gets smaller. It shows every animated layer of the screen on one time axis.
In the timeline:
- Drag a bar to change the delay.
- Drag the right edge of a bar to change the duration.
- Double-click a row to add a key. Drag a key to move it in time.
- Select a key and press Delete to remove it.
- Click between two keys to change the easing.
- Click or drag the ruler to see that moment on the canvas.
- Press Space to play or pause.
- Pinch, press ⌘ or Ctrl and use the wheel, or use the slider, to zoom.
- Each drag is one undo step.
A layer can animate move X and Y, scale, stretch X and Y, opacity, width, height, gap, 3D turns, depth and perspective. Each one has its own row.
How to record keys
- Open the timeline.
- Select a layer and click the auto-keyframe button (its name is Auto-keyframe: changes to the selected layer become keys at the playhead).
- Move the playhead. Change the layer.
Each change adds keys at the playhead. Click the button again to stop.
How to get suggested motion
- Open Agents (the AI tab, then Agents, or ⌘L). See Agents.
- Find the suggestions from the Motion Specialist.
- Click Fix on one, or Fix all.
Agents suggest motion for layers that appear with no motion. Examples: a sheet slides up, a toast drops in, a loader spins, a list staggers in.