Nearest Phase Modulator
Introducing npm Teams! Private packages + team management tools.Learn more »

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

Install

npm i postcss-magic.css-data

DownloadsWeekly Downloads

13

Version

1.1.0

License

MIT

Unpacked Size

18.8 kB

Total Files

4

Last publish

Collaborators

  • avatar