postcss-mimic.css-data

v1.0.2
Package that adds `@keyframes` from mimic.css.
css animation keyframes mimic.css

postcss-mimic.css-data

Autogenerated data for postcss-animations plugin.

Parsed all @keyframes from magic.css.

Install

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

Use

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

(async () => {
  const CSS = `.my-tearDrop { animation-name: tearDrop; }`;
  const PLUGINS = [
    postcssAnimations({
      data: [require("postcss-mimic.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-tearDrop { animation-name: tearDrop; }
      @keyframes tearDrop { }
    */
  } catch (e) {
    console.error(e);
  }
})();

Other animation data:

Update data:

git clone https://github.com/retyui/postcss-mimic.css-data
cd postcss-mimic.css-data
yarn
yarn build
npm i postcss-mimic.css-data

Metadata

  • MIT
  • >= 4.2
  • David Narbutovich
  • released 1/16/2018

Downloads

Maintainers