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

ng-animated-icons

v1.9.0

Published

Beautifully crafted animated icons for Angular, built on Lucide. Easily customizable and lightweight.

Readme

ng-animated-icons

Beautifully crafted animated icons for Angular.

an open-source collection of smooth, animated icons for your projects. feel free to use them, share your feedback, and let's make this library awesome together!

Heavily based on Moving Icons, inspired by lucide-animated.

Demohttps://icons.ajitpanigrahi.com

Highlights

  • ✅ Standalone Components, for Angular v19 and above.
  • ✅ Zoneless & signals-first. RxJS is not required.
  • ✅ Custom InjectionToken for configuring customizations in one place.

Installation

Install this package with the package manager of your choice.

npm i ng-animated-icons
pnpm i ng-animated-icons
bun add ng-animated-icons
yarn add ng-animated-icons

Or copy just the required icons from the repository.

Use the docs to find the files and copy the source code into your project. The only relative import is for the injection token, so consider either adding this file directory beside your icons or you can delete the relevant lines should you choose to skip this.

Usage

Import Path

import { ActivityIcon, StarIcon } from 'ng-animated-icons';
  • All component names are in PascalCase and have an Icon suffix to the respective Lucide icon names. This suffix is added to avoid conflicts with other components, especially since newer Angular components don't have the Component suffix by default.
  • All icon selectors are in lowercase and have an i- prefix to the respective Lucide icon names.

e.g., the thumbs-up icon in Lucide is available for import as ThumbsUpIcon, and can be used in the template as i-thumbs-up

Props

| Prop | Type | Default | Description | InjectionToken? | | ------------- | ------- | ---------------- | ------------------------------- | --------------- | | color | string | 'currentColor' | Stroke color (CSS color value) | Yes | | size | number | 24 | Icon size in pixels | Yes | | strokeWidth | number | 2 | SVG stroke width | Yes | | class | string | — | Optional additional CSS classes | No | | animate | boolean | false | Controls icon animation state | No |

Variants

  1. Default usage. This uses the default values mentioned in Props.

    import { ActivityIcon } from 'ng-animated-icons';
    <i-activity />
  2. Pass one-off options. Inline options will be applicable to current icon only.

    <!-- HTML-style attributes -->
    <i-activity class="border p-4" color="purple" size="24" strokeWidth="1" />
    
    <!-- Regular input binding for variables -->
    <i-activity [class]="'border p-4'" [color]="'purple'" [size]="24" [strokeWidth]="1" />
  3. Global options. The ideal place to configure standard settings across your app.

    // src/app/app.config.ts
    import { ApplicationConfig } from '@angular/core';
    import { provideAnimatedIcons } from 'ng-animated-icons';
    
    export const appConfig: ApplicationConfig = {
      providers: [
        provideAnimatedIcons({ color: 'blue', size: 30, strokeWidth: 1 }),
      ],
    };
    
    // main.ts
    import { bootstrapApplication } from '@angular/platform-browser';
    import { appConfig } from './app/app.config';
    import { App } from './app/app';
    
    bootstrapApplication(App, appConfig).catch(err => console.error(err));
    <!-- Will be blue, with stroke-width 1 and size 30 -->
    <i-activity />
    
    <!-- Will still be blue, with stroke-width 1 but with size 36 -->
    <i-activity size="36" />
    
    <!-- Will still be blue, with size 30 but with stroke-width 3 -->
    <i-activity strokeWidth="3" />
    
    <!-- Disregards providers since everything is overridden -->
    <i-activity color="#f91377" size="36" strokeWidth="3" />

Advanced Usage

Control icon animations from parent elements by binding the animate input to your own hover, focus & touch states:

import { BellIcon } from 'ng-animated-icons';

@Component({ ... })
class Example {
  shouldAnimate = signal(false);
}
<button
  (focusin)="shouldAnimate.set(true)"
  (focusout)="shouldAnimate.set(false)"
  (mouseenter)="shouldAnimate.set(true)"
  (mouseleave)="shouldAnimate.set(false)"
  (touchstart)="shouldAnimate.set(true)"
  (touchend)="shouldAnimate.set(false)"
>
  <i-bell size="16" [animate]="shouldAnimate()" />
  <span>Notifications</span>
</button>

When building navigation or sidebar components, it might come in handy to create a reusable wrapper component. With snippets, you can pass the hover/focus/touch state to the children, allowing icons to animate on hover/focus/touch:

@Component({
  selector: 'group-animation-item',
  template: `<ng-content />`,
  host: {
    '(focusin)': 'shouldAnimate.set(true)',
    '(focusout)': 'shouldAnimate.set(false)',
    '(mouseenter)': 'shouldAnimate.set(true)',
    '(mouseleave)': 'shouldAnimate.set(false)',
    '(touchstart)': 'shouldAnimate.set(true)',
    '(touchend)': 'shouldAnimate.set(false)',
  },
})
class GroupAnimationItem {
  readonly shouldAnimate = signal(false);
}

Use the wrapper component in your navigation:

import { GroupAnimationItem } from '@/components/group-animation-item';
import { Home, Settings } from 'ng-animated-icons';
<nav class="flex flex-col gap-2">
  <group-animation-item class="flex items-center gap-2 rounded p-2" #homeItem>
    <i-home size="16" [animate]="homeItem.shouldAnimate()" />
    <span>Home</span>
  </group-animation-item>
  <group-animation-item class="flex items-center gap-2 rounded p-2" #settingsItem>
    <i-settings size="16" [animate]="settingsItem.shouldAnimate()" />
    <span>Settings</span>
  </group-animation-item>
</nav>

Missing support for something?

Go through existing issues if your problem is tracked; if not, please raise a new issue!

Commands for development

Run demo locally:

bunx nx serve docs

Format affected code only:

bunx nx format

Format everything:

bun run format

Build docs for deployment:

bunx nx build docs

Build package for deployment:

bunx nx build ng-animated-icons

License

MIT. Built by Ajit Panigrahi.