Use Velocity.js or Transit.js to animate CSS / JS / jQuery?

I am using jQuery . animate () for animating websites and absolutely love how it works. However, I just found out that Velocity.js and Transit.js are faster to execute the way, animate CSS3 transitions and can be used in jQuery just like .animate ().

Should I use Velocity.js or Transit.js for animation? And why?

+4
source share
1 answer

According to the tests on this page, the speed is the best (gives the smoothest animations): Speed Test http://codepen.io/GreenSock/pen/pmknI

Using these libraries greatly increased the smoothness of my animations on mobile devices.

However, I did tests for memory consumption (looking at the browser task manager), and I saw that every time I did an animation with speed or transit, it consumed a lot more memory (3 MB) every time I started (without saying already that the garbage collector was returning this memory for a long time)

On the other hand, when jQuery animate is called, it uses an average of 1 MB to perform the same animation.

+7
source

All Articles