plus1tv / react-anime

✨ (ノ´ヮ´)ノ*:・゚✧ A super easy animation library for React!
https://codepen.io/collection/nrkjgo/
MIT License
1.55k stars 81 forks source link

Anime component makes div disappear #5

Closed luandro closed 8 years ago

luandro commented 8 years ago

Am I doing something wrong?

import Anime from 'react-anime';

function Header() {
   return (
      <div>
         <h1>Header</h1>
         <Anime>
           <div style={{ width: 40, height: 40, background: 'blue' }} />
         </Anime>
      </div>
   )
}

I've tried adding the props from the example, but without them I also get the same result. It simply makes my div disappear.

kennetpostigo commented 8 years ago

@luandro actually I spotted the bug and it should be fixed. npm install react-anime to v0.2.2. It should be working. Thank you for raising this issue :)

kennetpostigo commented 8 years ago

@luandro if the problem went away with v0.2.2 feel free to close the issue.

luandro commented 8 years ago

@kennetpostigo got fixed, thanks a lot and great job on the project!