1 2 3 4 5 6 7 8 9 10 11 | 1× 2× 5× 2× | import buildDeclarations from './build-declarations' export const buildKeyframeSteps = steps => Object.keys(steps) .map(step => `${step}{${buildDeclarations(steps[step])}}`) .join('') export default (animationName, steps) => { return `@keyframes ${animationName}{${buildKeyframeSteps(steps)}}` } |