---
title: "Trunk animated icon"
description: "Trunk animated icon (Automotive). The trunk opens. Light: the latch releases and the lid pops up a few degrees and catches, then the gas struts lift it to 70 degrees open; it overshoots a little and settles. Strong: the latch pops harder with a thunk through the car, the struts fling the lid 12 degrees past open, it swings back under and settles. The reverse swings the lid down and slams it shut: it bounces on the seal and the car dips on its springs. The wheels stay planted; the lid holds open."
canonical: https://generativeicons.com/icons/trunk/
---

# Trunk animated icon

The trunk opens. Light: the latch releases and the lid pops up a few degrees and catches, then the gas struts lift it to 70 degrees open; it overshoots a little and settles. Strong: the latch pops harder with a thunk through the car, the struts fling the lid 12 degrees past open, it swings back under and settles. The reverse swings the lid down and slams it shut: it bounces on the seal and the car dips on its springs. The wheels stay planted; the lid holds open.

- Id: `trunk`
- Category: Automotive
- Search terms: boot, car boot, tailgate, liftgate, rear hatch, cargo, cargo space, boot space, luggage space, open boot, boot lid
- Two states: closed to open, 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/trunk.lottie (dotLottie, 6801 bytes, sha256 51efb5e99d54cbde902c282f3fee014cce34c7fa952a828e3db1961952118123)
- License: MIT

## Install

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

## React

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

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