Figma Motion is currently in open beta. Features may change and you may experience performance issues as we continue to improve Figma Motion. Learn more about what's included in the beta.
Before you Start
Who can use this feature
Available on any plan
Anyone with can edit access to a file can use path trim
Path trim lets you create animated strokes by controlling how much of a vector path is visible at any point in time. You can use path trim to create draw-on or erase effects, handwriting animations, and looping spinners.
There are two ways to apply a path trim animation:
Note: Path trim animations can only be applied to center-positioned strokes.
Use the path preset animation
You can use the path preset animation to quickly apply a path trim animation to a stroke.
Note: The path preset animation can only be applied to open vector paths, and you can only apply one path preset per object. To apply a path trim animation to a closed vector path, use path trim keyframes.
To apply a path preset animation:
- In Figma Motion, select the open vector path you want to animate.
- Click Animations in the Animations section of the right sidebar.
- Choose Path from the list of preset animations. If the Path option is disabled, make sure you’ve selected an open vector path with a center-positioned stroke.
- Use the settings to configure the animation.
Use path trim keyframes
Path trim keyframes let you animate the start and end points of a path independently, giving you precise control over the motion. For example, you can use keyframes to create a loading spinner with staggered start and end points for more fluid, organic movement. Path trim keyframes can be applied to both open and closed vector paths.
Tip: If you’d like to learn how to create the animation shown in the example above, check out the Create a loading animation hands-on project.
To apply path trim keyframes:
- In Figma Motion, select the vector path you want to animate.
- Click Add keyframe next to Path trim start or Path trim end in the Stroke section of the right sidebar to set your starting keyframe.
- Enter a value between 0% and 100% to set the point on the path where the trim begins or ends.
- Move the playhead to where you want the animation to end, then adjust the Path trim start or Path trim end value to add another keyframe that defines the final state of the path.
Getting started with animation? Check out the Motion design fundamentals collection to learn the principles behind effective motion design and get hands-on practice creating animations in Figma Motion.