Skip to article

Editing animations

Edit Motion animations on a visual timeline in your running site, then apply the changes to your source code.

Animations will appear in the timeline editor when detected. For JS, animations are detected when they run whereas many React and Vue animations will be parsed from props.

Select an animation from the dropdown to start editing.

Each group of elements within an animation are represented by a track.

A track can be dragged to move an animation (by setting its delay). It has resize handles at each end which can be used to rescale the animation and the duration of all its keyframes.

Double-click a track to add a keyframe, or select a keyframe to edit its values or easing.

Transition

Double click a keyframe to snap it to the nearest keyframe.

0.00.51.01.52.0
opacity
y
opacity
y

Changes stay in the preview until Apply. Use the discard control to remove pending changes.

Use Cmd+Z or Ctrl+Z to undo. Add Shift to redo. Draft edits and applied source edits have undo history. Source history belongs to the current dev server session.

Add a new animation

By pressing the Add animation button, you can select an element (or multiple elements) to apply a new animation to.

Choose Animation, Hover, Press, or In view.

To edit what users who ask for reduced motion see, see Reduced motion.

Keyboard controls

Use Cmd on macOS or Ctrl on Windows and Linux. Option on macOS is the same as Alt below.

Panel and timeline

These shortcuts work while Studio is open, except when you're typing in a field. Alt+T also works when the panel is closed.

ShortcutAction
Alt+TOpen or close Studio.
SpacePlay or pause the selected animation.
Space+dragPan the timeline. Release Space without dragging to play or pause.
Left arrow / Right arrowMove the playhead to the previous or next keyframe.
HomeMove the playhead to the start.
Cmd/Ctrl+ASelect all tracks in the current animation.
Cmd/Ctrl+ZUndo an edit.
Cmd/Ctrl+Shift+ZRedo an edit.
Shift+ACycle the Studio accent colour.

Press Cmd/Ctrl+S to apply pending changes for the selected animation. This also works while typing in a field. Other animations keep their pending changes. Apply needs Motion+ or Motion+ Pro.

Editing and chat

ShortcutAction
Enter in the agent inputSend your message.
Shift+Enter in the agent inputAdd a new line.
Arrow keys with a Bézier control point focusedMove the control point by 0.1. Hold Shift for smaller steps of 0.01.
Escape while picking an elementCancel element selection.

Text fields keep their normal text-editing shortcuts, including undo and redo.

Apply to code

Pressing Apply will write your new animation to your codebase. Simple edits are written straight to code by the Motion Studio server.

With a connected agent, pressing Apply will automatically write the animation to your codebase.

Without one, a prompt will be copied to your clipboard to paste into the agent of your choice. See Connect external agent to set one up.