---
title: "Compass animated icon"
description: "Compass animated icon (Interface). The needle seeks north. Light: the needle kicks 40 degrees off its bearing, swings back past it and settles in shrinking swings (40, -16, 7, -2.5). Strong: a bigger kick and two more swings (75, -36, 17, -8, 3) before it locks on. The case never moves."
canonical: https://generativeicons.com/icons/compass/
---

# Compass animated icon

The needle seeks north. Light: the needle kicks 40 degrees off its bearing, swings back past it and settles in shrinking swings (40, -16, 7, -2.5). Strong: a bigger kick and two more swings (75, -36, 17, -8, 3) before it locks on. The case never moves.

- Id: `compass`
- Category: Interface
- Search terms: navigation, navigate, north, direction, orientation, bearing, explore, discover, wayfinding, true north, adventure
- One action, back to rest
- 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/compass.lottie (dotLottie, 3149 bytes, sha256 8c3eeae394a4428e1746b667bb1ebcc98af6b6f4a3840694909887f64eb525e7)
- License: MIT

## Install

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

## React

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

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