Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tailwindcss-animation-delay

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwindcss-animation-delay

Tailwind CSS plugin, add animation-delay CSS property.

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
37K
increased by2.41%
Maintainers
1
Weekly downloads
 
Created
Source

tailwindcss-animation-delay

Tailwind CSS plugin, add animation-delay CSS property.

[!NOTE] Version 2.0.0 now supports negative values.

Installation

Install the plugin from npm:

# Using npm
npm install tailwindcss-animation-delay

# Using Yarn
yarn add tailwindcss-animation-delay

Then add the plugin to your tailwind.config.js file:

/** @type {import('tailwindcss').Config} */
module.exports = {
  theme: {
    // ...
  },
  plugins: [
    require("tailwindcss-animation-delay"),
    // ...
  ],
}

Usage

animation-delay-{n} class to specifies the amount of time to wait from applying the animation to an element before beginning to perform the animation.

<svg class="animate-bounce animation-delay-300 w-6 h-6 ...">
  <!-- ... -->
</svg>

Negative values

To use a negative animation-delay value, prefix the class name with a dash to convert it to a negative value.

<svg class="animate-bounce -animation-delay-600 w-6 h-6 ...">
  <!-- ... -->
</svg>
ClassProperties
animation-delay-noneanimation-delay: 0s;
animation-delay-75animation-delay: 75ms;
animation-delay-100animation-delay: 100ms;
animation-delay-150animation-delay: 150ms;
animation-delay-200animation-delay: 200ms;
animation-delay-300animation-delay: 300ms;
animation-delay-400animation-delay: 400ms;
animation-delay-500animation-delay: 500ms;
animation-delay-600animation-delay: 600ms;
animation-delay-700animation-delay: 700ms;
animation-delay-800animation-delay: 800ms;
animation-delay-900animation-delay: 900ms;
animation-delay-1000animation-delay: 1000ms;
animation-delay-1100animation-delay: 1100ms;
animation-delay-1200animation-delay: 1200ms;
animation-delay-1300animation-delay: 1300ms;
animation-delay-1400animation-delay: 1400ms;
animation-delay-1500animation-delay: 1500ms;
animation-delay-2000animation-delay: 2000ms;
animation-delay-3000animation-delay: 3000ms;
animation-delay-4000animation-delay: 4000ms;
animation-delay-5000animation-delay: 5000ms;
animation-delay-6000animation-delay: 6000ms;
animation-delay-7000animation-delay: 7000ms;
animation-delay-8000animation-delay: 8000ms;
animation-delay-9000animation-delay: 9000ms;
-animation-delay-75animation-delay: -75ms;
-animation-delay-100animation-delay: -100ms;
-animation-delay-150animation-delay: -150ms;
-animation-delay-200animation-delay: -200ms;
-animation-delay-300animation-delay: -300ms;
-animation-delay-400animation-delay: -400ms;
-animation-delay-500animation-delay: -500ms;
-animation-delay-600animation-delay: -600ms;
-animation-delay-700animation-delay: -700ms;
-animation-delay-800animation-delay: -800ms;
-animation-delay-900animation-delay: -900ms;
-animation-delay-1000animation-delay: -1000ms;
-animation-delay-1100animation-delay: -1100ms;
-animation-delay-1200animation-delay: -1200ms;
-animation-delay-1300animation-delay: -1300ms;
-animation-delay-1400animation-delay: -1400ms;
-animation-delay-1500animation-delay: -1500ms;
-animation-delay-2000animation-delay: -2000ms;
-animation-delay-3000animation-delay: -3000ms;
-animation-delay-4000animation-delay: -4000ms;
-animation-delay-5000animation-delay: -5000ms;
-animation-delay-6000animation-delay: -6000ms;
-animation-delay-7000animation-delay: -7000ms;
-animation-delay-8000animation-delay: -8000ms;
-animation-delay-9000animation-delay: -9000ms;

Configuration

You can configure which values and variants are generated by this plugin under the animationDelay key in your tailwind.config.js file:

/** @type {import('tailwindcss').Config} */
module.exports = {
  theme: {
    animationDelay: {
      100: "100ms",
      200: "200ms",
      300: "300ms",
      400: "400ms",
      "-3000": "-3000ms",
      "-7000": "-7000ms",
    },
  },
  variants: {
    animationDelay: ["focus"],
  },
}

Extending the default theme

If you’d like to preserve the default values for a theme option but also add new values, add your extensions under the theme.extend key in your configuration file.

/** @type {import('tailwindcss').Config} */
module.exports = {
  theme: {
    extend: {
      animationDelay: {
        120: "120ms",
        250: "250ms",
        350: "350ms",
        450: "450ms",
        "-3500": "-3500ms",
        "-7500": "-7500ms",
      },
    },
  },
}

Keywords

FAQs

Package last updated on 18 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc