plus1tv / react-anime

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

Cannot get basic animation working? #60

Closed am8525 closed 4 years ago

am8525 commented 4 years ago

Just trying to get something basic going, and it doesn't seem to be working.

Note: I have figured out how to use anime.js with React, and will be doing so until I can figure out how to use react-anime.

Here's my code:

render(){
        const {classes} = this.props;
        return (
            <div className={classes.landscape}>
                <div className={classes.centerpiece}>
                    <Anime delay={100} scale={[.1, .9]}>
                        <Dot className={classes.dot}/>
                    </Anime>
                </div>
            </div>
        );
    }
am8525 commented 4 years ago

Figured it out. Just had to enclose within some divs.