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-auto-animate

v1.1.0

Published

Add motion to your apps with a single line of code. An Angular Directive to use FormKit's auto-animate library.

Readme

ng-auto-animate

An Angular Directive for FormKit's auto-animate library.

Demohttps://ng-auto-animate.netlify.app/

Highlights

  • ✅ Standalone Directive, for Angular v17 and above.
  • ✅ Zoneless & signals-first. RxJS is not required.
  • ✅ Custom InjectionToken for configuring global settings and plugins.
  • ✅ SSR-safe, running only after the view is initialized on the client-side.

Installation

Install this package and its peer dependency with the package manager of your choice.

npm i ng-auto-animate @formkit/auto-animate
pnpm i ng-auto-animate @formkit/auto-animate
bun add ng-auto-animate @formkit/auto-animate
yarn add ng-auto-animate @formkit/auto-animate

Usage

Principle

Add the directive to the parent tag, within which DOM elements are being dynamically shown or hidden.

Applying the directive to the same tag being hidden will have no effect, as it only detects changes in child nodes.

Import Path

Import and add the directive to your module or standalone component's imports array.

import { NgAutoAnimate } from 'ng-auto-animate';

Variants

  1. Default usage. This uses the default values configured by @formkit/auto-animate.

    <article auto-animate>
      @if (shouldShow()) {
        <p>Conditionally shown element</p>
      }
    </article>
  2. Pass one-off options. Inline options will completely replace and override the default options.

    <article [auto-animate]="{ duration: 750 }">
      @if (shouldShow()) {
        <p>{{ paragraph }}</p>
      }
    </article>
  3. Global options. The ideal place to configure standard settings across your app. The supported values are Partial<AutoAnimateOptions> | AutoAnimationPlugin

    // src/app/app.config.ts
    import { ApplicationConfig } from '@angular/core';
    import { provideAutoAnimateConfig } from 'ng-auto-animate';
    import type {
      AutoAnimateOptions, // Standard options like easing, duration, etc.
      AutoAnimationPlugin, // Custom plugins
    } from '@formkit/auto-animate';
    
    export const appConfig: ApplicationConfig = {
      providers: [
        provideAutoAnimateConfig({ duration: 1000, easing: 'ease-out' }),
      ],
    };
    
    // 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));
    <article auto-animate>
      <!-- Default usage -->
      @for (paragraph of paragraphs; track paragraph) {
        <p>{{ paragraph }}</p>
      }
    </article>
  4. Custom plugins. Same support as @formkit/auto-animate.

    See the example here in the demo app for a "bouncy" effect.

    customPlugin: AutoAnimationPlugin = (...) => {...};
    <article [auto-animate]="customPlugin">...</article>
  5. Disable animations. prefers-reduced-motion is already respected. Additionally, we can explicitly disable animations like this:

    <article
      [auto-animate]="{ duration: 750 }"
      [disableAutoAnimate]="shouldDisableAnimations()"
    >
      @if (shouldShow()) {
        <p>{{ paragraph }}</p>
      }
    </article>

Missing support for something?

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

Support us

Is AutoAnimate saving you time?

Please consider supporting us with a recurring or one-time donation! 🙏

License

MIT.

Built by Ajit Panigrahi. Original library by Justin Schroeder and many contributors.