[go: up one dir, main page]

postcss-magic.css-data

1.1.0 • Public • Published

postcss-magic.css-data

Autogenerated data for postcss-animations plugin.

Parsed all @keyframes from magic.css.

Install

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

Use

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

Other animation data:

Update data:

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

Package Sidebar

Install

npm i postcss-magic.css-data

Weekly Downloads

47

Version

1.1.0

License

MIT

Unpacked Size

18.8 kB

Total Files

4

Last publish

Collaborators

  • retyui