---
title: "Graduation cap animated icon"
description: "Graduation cap animated icon (Education). Graduation: the cap is tossed in celebration. Light: the cap flies up with a tilt, drops back and lands with a hit and one small bounce, and the tassel swings behind it and damps out. Strong: a dip to throw, a higher toss with more tumble, and a landing with two decaying bounces while the tassel swings wide and damps out."
canonical: https://generativeicons.com/icons/graduation-cap/
---

# Graduation cap animated icon

Graduation: the cap is tossed in celebration. Light: the cap flies up with a tilt, drops back and lands with a hit and one small bounce, and the tassel swings behind it and damps out. Strong: a dip to throw, a higher toss with more tumble, and a landing with two decaying bounces while the tassel swings wide and damps out.

- Id: `graduation-cap`
- Category: Education
- Search terms: mortarboard, grad cap, graduate, graduated, alumni, degree, university, college, academic, commencement, student, education
- 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/graduation-cap.lottie (dotLottie, 3525 bytes, sha256 35c95aaebd2fc950ba01418329ef55056d9ebb0c1e5558167b9a596b599b9925)
- License: MIT

## Install

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

## React

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

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