---
title: "Motion path animated icon"
description: "Motion path animated icon (Motion design). A position marker travels its motion path from the first keyframe to the last and lands on it. Light: the marker leaves the start key, runs the actual cubic route (keyed along its arc length), brakes a little past the end key along the route's tangent and settles back onto it; the end key pulses as the marker reaches it. Strong: the marker first backs off the start key, then crosses the route decisively, brakes farther past the end key, undershoots and settles; the end key pulses harder. The route and keys never move; the preview reset fades it back."
canonical: https://generativeicons.com/icons/motion-path/
---

# Motion path animated icon

A position marker travels its motion path from the first keyframe to the last and lands on it. Light: the marker leaves the start key, runs the actual cubic route (keyed along its arc length), brakes a little past the end key along the route's tangent and settles back onto it; the end key pulses as the marker reaches it. Strong: the marker first backs off the start key, then crosses the route decisively, brakes farther past the end key, undershoots and settles; the end key pulses harder. The route and keys never move; the preview reset fades it back.

- Id: `motion-path`
- Category: Motion design
- Search terms: trajectory, follow path, move along path, position path, keyframe path, spatial path, spatial interpolation, travel path, path of travel
- Two states: prepared to result, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/motion-path.lottie (dotLottie, 8051 bytes, sha256 cb4173b220968c578544f7fd967a42a55ee1ba802996ccf837ee103b2aad489a)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add motion-path
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/motion-path.mjs';

export function MotionPathIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/motion-path.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/motion-path/ · https://generativeicons.com/api/icons/motion-path
