---
title: "Keyframes animated icon"
description: "Keyframes animated icon (Tools). Cause: playhead press. Action: track clears. Response: a rigid diamond appears. Result: two keys remain; the preview resets separately."
canonical: https://generativeicons.com/icons/keyframes/
---

# Keyframes animated icon

Cause: playhead press. Action: track clears. Response: a rigid diamond appears. Result: two keys remain; the preview resets separately.

- Id: `keyframes`
- Category: Tools
- Search terms: key frame, key frames, diamond keys, playhead, tween, tweening, interpolation, after effects, set key
- 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/keyframes.lottie (dotLottie, 25029 bytes, sha256 dae293632988918928910bb9397fad9fd4a1b446a8e492aed4c60e8df0f5fafb)
- License: MIT

## Install

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

## React

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

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