Git Product home page Git Product logo

react-animation-comparison's Introduction

Update: I have a new blog post and repo showing some concrete examples of how to build complex animations in React "from scratch"

Comparing the Ease of Use of 5 React Animation Libraries

Read the blog post where I give a more in-depth discussion of this project.

The Goal: to replicate this animation on entering and exiting react components:

example animation

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.

The Results

  1. 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
  1. react-motion-ui-pack
  1. 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
  1. 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
  1. react-transition-group & animejs
  1. 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

react-animation-comparison's People

Contributors

aholachek avatar

Watchers

Diego S Jasso avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.