all files / lib/utils/ build-keyframe.js

100% Statements 4/4
100% Branches 0/0
100% Functions 3/3
100% Lines 4/4
1 2 3 4 5 6 7 8 9 10 11             
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)}}`
}