npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@animateicons/react

v0.3.1

Published

Animated SVG icons for React with hover and imperative animation triggers. Built on motion/react.

Downloads

686

Readme

@animateicons/react

281 animated SVG icons for React. Hover and imperative triggers, configurable size, color, and duration. Built on motion/react.

npm bundle types license

Browse icons →  ·  Docs →

Install

react and react-dom are peer dependencies. motion is bundled — no separate install needed.

pnpm add @animateicons/react

Usage

Lucide and Huge are exposed as scoped subpaths because some icon names overlap (HeartIcon, CopyIcon, etc.).

import { BellRingIcon } from "@animateicons/react/lucide";
import { HeartIcon } from "@animateicons/react/huge";

export function Notifications() {
	return <BellRingIcon size={24} color="#f45b48" />;
}

That's it — the icon animates on hover by default.

Styling

Every icon strokes currentColor, so it inherits the surrounding text color. You can also pass color, className, or use the duration and isAnimated props to control playback.

// Color — sets currentColor inline
<BellRingIcon color="#f45b48" />

// Tailwind utility — works because icons stroke="currentColor"
<BellRingIcon className="text-primary" />

// Speed — duration is a multiplier (lower = faster)
<BellRingIcon duration={0.6} />

// Disable hover animation
<BellRingIcon isAnimated={false} />

Imperative API

Need to trigger an animation from a parent — on click, on focus, or programmatically? Pass a ref. Each icon exports its own *Handle type.

"use client";
import { useRef } from "react";
import {
	BellRingIcon,
	type BellRingIconHandle,
} from "@animateicons/react/lucide";

export function Bell() {
	const ref = useRef<BellRingIconHandle>(null);

	return (
		<button
			onMouseEnter={() => ref.current?.startAnimation()}
			onMouseLeave={() => ref.current?.stopAnimation()}
		>
			<BellRingIcon ref={ref} size={28} />
		</button>
	);
}

The shared IconHandle type is also exported from the root for generic ref typing:

import type { IconHandle } from "@animateicons/react";

Props & types

interface IconProps {
	size?: number;
	color?: string;
	className?: string;
	duration?: number;
	isAnimated?: boolean;
	onMouseEnter?: (e: React.MouseEvent<HTMLDivElement>) => void;
	onMouseLeave?: (e: React.MouseEvent<HTMLDivElement>) => void;
	style?: React.CSSProperties;
}

interface IconHandle {
	startAnimation: () => void;
	stopAnimation: () => void;
}

Animations respect the OS-level Reduce Motion preference — no extra setup required.

Compatibility

| Requirement | Supported | | -------------- | --------------------------------------------- | | React | 18 or 19 | | Module formats | ESM + CommonJS | | TypeScript | strict-mode types ship with the package | | Next.js | every icon carries a "use client" directive |

Links

License

MIT © Avijit Dey.