UNPKG

animista-css-generator

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