Skip to content

robhil/css-keyframes-animation

Repository files navigation

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();
  

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published