Update: I have a new blog post and repo showing some concrete examples of how to build complex animations in React "from scratch"
Read the blog post where I give a more in-depth discussion of this project.
The Arbitrary Time Limit: Spend no more than an hour/hour and a half learning a library's API and trying to implement the animation.
- react-move
- A lightweight library that applies d3's interpolate to specified components. Ultimately the features it offered were a bit too simple and I struggled to get the complete sequential animation working.
- my animation attempt
- the code
- react-motion-ui-pack
- Quickly became apparent that this simple library wasn't suited to the type of animation I was trying to do.
- my animation attempt
- the code
- react-motion
- An hour and a half wasn't enough time for me to understand the intricacies of this physics-based animation library and to create the example animation.
- my animation attempt
- the code
- velocity-react
- A powerful, intuitive option that got me far but then ended up tripping me up when it came time to get the nested leave animations working.
- my animation attempt
- the code
- react-transition-group & animejs
- Using react-transition-group and a JavaScript animation library ended up being by far my favorite technique
- my animation attempt
- the code
- react-transition-group & gsap
- Very much like the animejs example. Animejs is more lightweight, ES2015-friendly, and open source, but GSAP is the standard for powerful JavaScript animation libraries.
- my animation attempt
- the code