New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

signalledger-diagnostics

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Malware was recently detected in this package.

Affected versions:

2.0.6

signalledger-diagnostics

A configurable, namespaced Animate.css integration for Tailwind CSS

latest
Source
npmnpm
Version
2.0.6
Version published
Weekly downloads
7
75%
Maintainers
1
Weekly downloads
 
Created
Source

signalledger-diagnostics

A configurable Animate.css integration for Tailwind CSS 3. It reads the installed Animate.css catalog at build time, emits only the animations you select, and namespaces generated keyframes to prevent collisions.

Global duration, delay, and iterationCount values are passed to @aaron205whitmore/postcss-animate-utils, which generates the corresponding Tailwind base custom properties.

Installation

npm install signalledger-diagnostics animate.css

Basic usage

// tailwind.config.js
module.exports = {
  content: ['./src/**/*.{html,js,jsx,ts,tsx,vue,svelte}'],
  plugins: [
    require('signalledger-diagnostics')({
      animations: ['bounce', 'fadeIn', 'fadeOut', 'slideInUp']
    })
  ]
};

Apply the base class together with an animation class:

<div class="keyframe keyframe-fade-in">Content</div>

Animation names are converted to kebab case in generated class names. For example, fadeInDownBig becomes keyframe-fade-in-down-big.

Configuration

require('signalledger-diagnostics')({
  prefix: 'motion',
  animations: ['bounce', 'fadeIn'],
  exclude: ['bounce'],
  aliases: {
    enter: 'fadeIn'
  },
  duration: '900ms',
  delay: '0s',
  iterationCount: '1',
  namespaceKeyframes: true,
  respectReducedMotion: true,
  modifiers: true,
  durations: {
    quick: '300ms',
    deliberate: '1400ms'
  },
  delays: {
    short: '150ms',
    long: '800ms'
  },
  repeats: {
    twice: '2',
    forever: 'infinite'
  }
})
OptionDefaultPurpose
prefixkeyframePrefix for classes and generated keyframes
animations'*'Animate.css names to include; '*' includes the full catalog
exclude[]Animation names to omit
aliases{}Public class names mapped to Animate.css animation names
duration1sDefault animation duration
delay0sDefault animation delay
iterationCount1Default iteration count
namespaceKeyframestruePrefix keyframe identifiers to prevent collisions
respectReducedMotiontrueMinimize animation when the user requests reduced motion
modifierstrueGenerate timing, repeat, pause, and run utilities
durationsBuilt-in mapDuration modifier tokens
delaysBuilt-in mapDelay modifier tokens
repeatsBuilt-in mapIteration modifier tokens

The deprecated classes option remains an alias for animations during migration.

Generated utilities

With the default prefix, the plugin generates:

<div class="keyframe keyframe-bounce keyframe-duration-fast keyframe-delay-1s keyframe-repeat-2"></div>
  • keyframe-duration-{token} sets the duration variable.
  • keyframe-delay-{token} sets the delay variable.
  • keyframe-repeat-{token} sets the iteration-count variable.
  • keyframe-paused and keyframe-running control playback.

Tailwind variants work normally:

<div class="keyframe keyframe-fade-in hover:keyframe-paused md:keyframe-duration-slow"></div>

Aliases

Aliases provide stable semantic names without copying keyframes:

require('signalledger-diagnostics')({
  animations: [],
  aliases: {
    notificationEnter: 'fadeInDown',
    notificationExit: 'fadeOutUp'
  }
})
<aside class="keyframe keyframe-notification-enter"></aside>

Catalog

The package exposes the animation names found in the installed Animate.css version:

const keyframes = require('signalledger-diagnostics');
console.log(keyframes.catalog());

Migration from 1.x

  • The default class prefix changed from animatecss to keyframe.
  • Generated animation class names use kebab case.
  • Keyframe names are namespaced by default.
  • animations replaces classes; classes remains a compatibility alias.
  • @aaron205whitmore/postcss-animate-utils now processes global timing options and is installed automatically.
  • Reduced-motion handling is enabled by default.

License

MIT

Keywords

tailwindcss

FAQs

Package last updated on 28 Sep 2026

Related posts