项目的 README,来自 github.com/Avijit07x/animateicons。合并为一个 markdown 文件:README.md。
Browse icons · Docs · MCP · Sponsor
1,500 free, open source animated icons for React, Vue, Angular and plain JavaScript. Every animation is hand-crafted and tuned to feel smooth, and plays the same in every framework.
Hover and imperative triggers, with configurable size, color and duration. Built on motion.
pnpm add @animateicons/react
import { BellRingIcon } from "@animateicons/react/lucide";
export function Notifications() {
return <BellRingIcon size={24} color="#f45b48" />;
}
Icons animate on hover by default, and motion is bundled. Import from @animateicons/react/lucide or @animateicons/react/huge.
Prefer to own the code? Copy one icon into your project with npx animateicons add bell-ring.
The same icons and the same motion ship for more than React:
| Framework | Package | Docs |
|---|---|---|
| Plain JS, web components, Svelte, Solid, Astro | @animateicons/vanilla |
Plain JS |
| Vue 3 and Nuxt | @animateicons/vue |
Vue |
| Angular 20, 21 and 22 | @animateicons/angular |
Angular |
| Prop | Type | Default |
|---|---|---|
size |
number |
24 |
color |
string |
currentColor |
duration |
number |
1 |
isAnimated |
boolean |
true |
className |
string |
- |
[!TIP] Use
useIconHoverto play an icon when a user hovers or clicks the button, link or card around it.
"use client";
import { useIconHover } from "@animateicons/react";
import { BellRingIcon } from "@animateicons/react/lucide";
export default function Bell() {
const { ref, triggerProps } = useIconHover(); // hover (default)
return (
<button {...triggerProps}>
<BellRingIcon ref={ref} size={28} />
</button>
);
}
See the full docs for click, both and multiple icons.
| Topic | What it covers | Docs |
|---|---|---|
| React | Props, Next.js, Server Components and types | React |
| Examples | Hover helper, buttons, inputs, cards and menus | Examples |
| shadcn | Add icons with the shadcn CLI | shadcn |
| CLI | Copy icons into your project with npx animateicons |
CLI |
| MCP | Let AI agents search and add icons | MCP |
Start with the introduction for everything else.
PRs adding icons are welcome. See CONTRIBUTING.md.
MIT. Icon shapes are based on Lucide and Hugeicons, see the third-party notices.