css-keyframes-animation

0.0.2 • Public • Published

css-keyframes-animation

Travis build status Test Coverage Dependency Status devDependency Status

Generate @keyframes rule specifies the animation code

If you want to generate CSS keyframes animation, like so:

@keyframes myAnimation {
  0% {
    transform: translateX(0)
  }
  100% {
    transform: translateX(100px)
  }
}

You have to do this:

  const animation = new CssKeyframesAnimation({
    0: {
      transform: translateX(0)   
    },
    100: {
      transform: translateX(100px)
    }
  }, 'myAnimation');
  
  animation.generateKeyframesAnimation();
  

Readme

Keywords

none

Package Sidebar

Install

npm i css-keyframes-animation

Weekly Downloads

29

Version

0.0.2

License

MIT

Last publish

Collaborators

  • robhil