Velocity.js is a great project as well. It is essentially a complete replacement for jQuery's $.animate, although it does not need jQuery to operate anymore. It performs orders of magnitude better than jQuery, or at least it did before jQuery switched from using setTimeout to requestAnimationFrame for timing in this latest release. Also Velocity is MIT licensed. Gsap has a very permissive (free for pretty much all uses) but closed license that some will not like.
However, in my admittedly limited experience with Velocity, it falls short of Gsap when it comes to creating complex animations. The main issue is timing. Gsap has timeline functionality which lets you schedule multiple animations in sequence. It handles conflicts between animations changing the same properties at the same time. With Velocity, it is harder (at least in my opinion) to handle multi-part animations and to replay/pause animations in a reusable way. Also, I have had problems with Velocity handling transforms in weird ways compared to Gsap, although this was a while ago.
I see Velocity and Gsap as having very different purposes. If you want to make truly complex animations (think drag and drop interfaces, complex svg animations, form validation with many interacting elements, etc), Gsap is probably what you want. It is more robust and reliable. However if you just want to do simple things like sliding up a div or if you want to replace $.animate with a significantly more performant solution without changing any code, Velocity is perfect. It is much lighter weight than Gsap (although gsap is separated out into modules so you can include only what functionality you need for a project) so for simple use cases, Velocity may be the better choice.
Here is more from the creator of Gsap. Note that Velocity is no longer just a jQuery plugin.
3
u/The_frozen_one Jun 10 '16
What do you think about Velocity.js?