---
title: "Distance animated icon"
description: "Distance animated icon (Maps & navigation). Light: a measuring tape extends from the left pin to the right pin and its far tick appears on arrival. Strong: the tape launches, overruns the far pin slightly and the pin hops. The measurement is retained; preview reset rearms."
canonical: https://generativeicons.com/icons/distance/
---

# Distance animated icon

Light: a measuring tape extends from the left pin to the right pin and its far tick appears on arrival. Strong: the tape launches, overruns the far pin slightly and the pin hops. The measurement is retained; preview reset rearms.

- Id: `distance`
- Category: Maps & navigation
- Search terms: measure distance, measurement, measuring tape, tape measure, how far, length, mileage, miles, kilometers, kilometres, km, point to point
- 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/distance.lottie (dotLottie, 7387 bytes, sha256 de78e1d9d4652b279fa4d8479317cdf64cdbc7ba97e23480eca90f678054a0d4)
- License: MIT

## Install

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

## React

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

export function DistanceIcon() {
  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/distance.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/distance/ · https://generativeicons.com/api/icons/distance
