UNPKG

animista-css-generator

Version:
17 lines (13 loc) 356 B
const { cssHash } = require('css-hash'); const generator = require('../generator'); const animationClass = cssHash( (className) => ` .${className} { ${generator.fields( 'animation-delay: calc(1s * 5)', 'animation-delay: calc(var(--animate-delay) * 5)', )} } `, ); module.exports = animationClass;