Giter VIP home page Giter VIP logo

animation-comparison's Introduction

Animation libraries

Pose

  • Few stale issues, actively maintained.
  • Docs are spread across multiple libraries so working out where to look is tricky.
  • Docs are sometimes out of date with the actual API (e.g onPoseEnd is not document as part of React Pose but is available)
  • Good response from maintainers on https://spectrum.chat/popmotion/
  • Animating to 0 from arbitrary size just doesn't work.
  • Declarative model plays nicely with styled-components type thinking.
  • animating children is incredibly easy

Motion

  • Large number of unclosed and stale issues but is actively maintained.
  • Docs are a mess, I need to use 3rd hand info to get things working.
  • API is sort of mental but similar React Native's Animated.js.
  • No control over duration, control via stiffness and damping etc. instead, trickier to get exactly what we're after.
    • Also makes it tricker to handle input related motion, need to manually decide when to use the interpolated value vs the inital touch value
  • No additional helpers for declaring custom transitions.
  • A lot of code to achieve relatively small things.
  • animating children is simple but requires a lot of code

Spring

  • docs are decent but very short
  • Project is quite new, it's currently well looked after but is only a few months old.
  • Very similar API to motion (relies on renderprops)
    • Means code gets very large very quickly
    • Does mean that the code for an animation is next to the other elements it effects
  • animating children works in the same way as motion.
  • using the 'native' prop is a bit more complicated but leads to some really good performance improvements
  • no native methods for "illusion of life" easings (e.g spring/overshooting target etc.)
  • one of the open issues is to write tests, so currently this lib does not have actual unit tests for it pmndrs/react-spring#102

animation-comparison's People

Contributors

christienguy avatar

Watchers

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.