postcss-tuesday.css-data
v1.0.2
Published
Package that adds `@keyframes` from tuesday.css.
Downloads
231
Maintainers
Readme
postcss-tuesday.css-data
Autogenerated data for postcss-animations plugin.
Parsed all @keyframes
from magic.css.
Install
yarn add -D postcss-tuesday.css-data postcss-animations
# or npm i -D postcss-tuesday.css-data postcss-animations
Use
const postcss = require("postcss");
const postcssAnimations = require("postcss-animations");
(async () => {
const CSS = `.my-tdExpandIn { animation-name: tdExpandIn; }`;
const PLUGINS = [
postcssAnimations({
data: [require("postcss-tuesday.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-tdExpandIn { animation-name: tdExpandIn; }
@keyframes tdExpandIn { }
*/
} catch (e) {
console.error(e);
}
})();
Other animation data:
Update data:
git clone https://github.com/retyui/postcss-tuesday.css-data
cd postcss-tuesday.css-data
yarn
yarn build