About motion paths
Motion paths let you animate objects moving along curves and complex shapes. Similarly to lines drawn with the pen tool, you define motion paths by setting anchor points which are then connected by straight or curved lines.
Motion path animation is approximated by CSS, so animated elements may not exactly follow their motion paths. Generally the difference shouldn't be noticeable (by default, less than a pixel), and you can limit the extent of the deviation in the motion path properties.
On this page:
Viewing motion paths
Select a single element or group to see lines indicating where it will move during animation, along with the anchor points.
Anchor points are set by two ways:
- Thumbnails or keyframes that specify a new x or y position for the element automatically generate anchor points. The starting and ending anchor points are always at keyframes.
- You can add anchor points along the motion path using the Motion path tool.
Control handles are visible when the Motion path tool is selected. Each segment between anchor points has two control handles, one attached to each anchor point. The length and direction of a control handle indicate the degree of the motion path's curvature. For straight lines, control handles lie flush against the segment or are collapsed.
Editing motion paths
Editing motion path shape
Motion paths can be simple curves, closed shapes such as polygons and circles, or detailed outlines of other objects. To change the shape of a motion path:
- Add an anchor point
- Add a thumbnail or keyframe that changes the position of the element. This adds an anchor point where you can change the easing.
- The Add an anchor point option of the Motion path tool lets you click a spot on the motion path to add an anchor point, fixing the motion path there. Adding an anchor point using this method doesn't add a thumbnail or keyframe.
- Adjust the curvature
- When the Selection tool or the default option for the Motion path tool is selected, drag any spot on the motion path (including anchor points) to change the shape of the path.
- When the Motion path tool is selected, drag the control handles to change their length and angle, affecting the motion path's curvature. If another control handle is attached to the same anchor point, the other control handle automatically adjusts its angle to match, unless you hold down the Alt key.
- Double-click an anchor point to collapse the attached control handles. (A segment with both control handles collapsed is a straight line.) Double-clicking again extends the control handles.
- Delete an anchor point
- The Delete anchor point option of the Motion path tool lets you remove an existing anchor point by clicking it. Deleting an anchor point corresponding to a thumbnail or keyframe without any animated properties other than the motion path also deletes the thumbnail or keyframe.
- Deleting a thumbnail or keyframe deletes the segment of the motion path that ends at that thumbnail or keyframe.
Transforming motion paths
You can move, resize, flip or rotate motion paths by selecting the Motion path tool then ticking the Transform control box in the tool options bar. With this option enabled, the transform controls display when you select an element with a motion path.
- Move a motion path
- Drag the motion path to a new position on the stage.
- Resize the motion path
- The resize box borders the motion path in blue, with handles at each corner and on each side. Drag a handle to change the size of the motion path.
- Hold the Shift key while dragging to maintain the original aspect ratio.
- Hold the Alt key while dragging to keep the motion path centred at the same spot.
- To resize the motion path in a different direction, rotate the resize box by entering the degrees of rotation in the field in the tool options bar. You can also hold Alt (Windows) or Option (Mac) while pressing the left or right arrow key to rotate the resize box by 5°. The field always resets to 0°, so you should enter the desired rotation from the current orientation. Rotating the resize box doesn't change the orientation of the motion path itself.
- To reset the resize box orientation, double-click the inner rotation control (the smaller ring). This also resets the rotation pivot point location.
- Flip the motion path
- Drag a resize handle over the opposite resize handle.
- Rotate the motion path
- Drag the outer rotation control (the larger ring) clockwise or anticlockwise to rotate the motion path.
- Hold the Shift key while dragging to constrain the rotation to 45° increments.
- To move the pivot point for the rotation, drag the inner rotation control (the smaller ring) to a different place. Reset the pivot point location by double-clicking the inner rotation control (this also resets the resize box orientation).
Editing animation speed
Control the speed of an object along its motion path by changing the timing of the thumbnails or keyframes and the easing between them. You can also loop motion path animation.
Whenever you create or edit a motion path, Google Web Designer automatically optimises the animation, reducing the amount of CSS used to render it while observing the tolerances that you specify in the motion path properties. The lower the tolerances, the closer the animation follows the motion path, but less optimisation is possible.
For additional compression, click Optimise curve in the motion path properties. This process can take more time than automatic optimisation.
Google Web Designer displays the estimated size of the selected element's motion path in the Properties panel, reflecting how much disk space the motion path will take after publishing the document.
Motion path properties
Motion path properties appear in the Properties panel once you add an anchor point with the Motion path tool or edit the motion path to curve.
|Orient to path||When enabled, the element rotates during animation to face the direction of the motion path (e.g. while following the downward curve of a motion path, the element tilts downward). Control the precision of the rotation with the Angle tolerance property.|
|Position tolerance||Sets how far the element can deviate from the motion path.
|Angle tolerance||Controls how much the element's orientation can differ from the motion path's orientation. Only applicable if the Orient to path option is enabled.
|Optimise curve||Click the button to reduce the size of the CSS used to generate the motion path animation. After optimisation, the button is disabled until the motion path changes.|
|Size estimate||Displays an estimated size of the motion path. For additional compression, use the Optimise curve button.|
- Top/left positioning – Motion paths don't support top/left positioning. Use the CSS
transformproperty instead (this is the default).
- 3D animation – Google Web Designer doesn't support 3D motion paths. You can apply 3D translations separately to the element.
- CSS panel – The CSS panel doesn't affect motion paths, although styles are still applied to the element itself.
- Code view – You can't view or edit motion paths in Code view.
- AMPHTML ads – You can't use motion paths in AMPHTML ads.