devinhalladay / tailwind-sequenced-animations

Generate sequenced Tailwind animation utilities for transitioning lists with an incremental delay on each list item.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tailwind-animation-sequences

A Tailwind plugin which generates utilities to create staggered animations on lists of content.

Install the plugin from npm:

$ npm install tailwind-animation-sequences

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

// tailwind.config.js
module.exports = {
  theme: {
    // ...
    // Optional. Your plugin might not have any options at all.
    animationSequences: {
      // ...
      YOUR_PLUGIN_CUSTOM_OPTION: true,
      // ...
    },
  },
  variants: {
    // ...
    // Optional. Your plugin might not have any variants at all.
    animationSequences: ['responsive'],
    // ...
  },
  plugins: [
    // ...
    require('tailwind-animation-sequences'),
    // ...
  ],
};

This plugin will generate following CSS:

/* ... */
.example-utility-class {
  display: block;
}

.custom-utility-class {
  background-color: red;
}
/* ... */

License

tailwind-animation-sequences is licensed under the MIT License.

Credits

Created with create-tailwind-plugin.

About

Generate sequenced Tailwind animation utilities for transitioning lists with an incremental delay on each list item.

License:MIT License


Languages

Language:JavaScript 100.0%