FormidableLabs / react-animations

🎊 A collection of animations for inline style libraries
MIT License
3.06k stars 160 forks source link

JSS example in documentation is buggy #40

Open uadarsh opened 4 years ago

uadarsh commented 4 years ago

Current example:

const {classes} = jss.createStyleSheet({
  '@keyframes bounce': bounce,
  bounce: {
    animationName: 'bounce',
    animationDuration: '1s',
  },
}).attach()

Corrected example:

const {classes} = jss.createStyleSheet({
  '@keyframes bounce': bounce,
  bounce: {
    animationName: '$bounce',
    animationDuration: '1s',
  },
}).attach()

$ sign in missing in animationName value.