1.1.0 • Published 5 years ago

postcss-animation.css-data v1.1.0

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

postcss-animation.css-data

Autogenerated data for postcss-animations plugin.

Parsed all @keyframes from magic.css.

Install

yarn add -D postcss-animation.css-data postcss-animations
# or npm i -D postcss-animation.css-data postcss-animations

Use

const postcss = require("postcss");
const postcssAnimations = require("postcss-animations");

(async () => {
  const CSS = `.my-jackInTheBox { animation-name: jackInTheBox; }`;
  const PLUGINS = [
    postcssAnimations({
      data: [require("postcss-animation.css-data")],
      checkDuplications: true,
      disableCheckCssVariables: true
    })
  ];

  try {
    const { css, messages } = await postcss(PLUGINS).process(
      CSS /*, {from,to}*/
    );
    messages.map(msg => console.log(msg.toString()));

    console.log(css);
    /*
      .my-jackInTheBox { animation-name: jackInTheBox; }
      @keyframes jackInTheBox { }
    */
  } catch (e) {
    console.error(e);
  }
})();

Other animation data:

Update data:

git clone https://github.com/retyui/postcss-animation.css-data
cd postcss-animation.css-data
yarn
yarn build
1.1.0

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago