plus1tv / react-anime

✨ (ノ´ヮ´)ノ*:・゚✧ A super easy animation library for React!

Home Page:https://codepen.io/collection/nrkjgo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot get basic animation working?

am8525 opened this issue · comments

commented

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>
		);
	}
commented

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