haltu / muuri

Infinite responsive, sortable, filterable and draggable layouts
https://muuri.dev
MIT License
10.8k stars 644 forks source link

Velocity.js vs alternatives #44

Closed niklasramo closed 7 years ago

niklasramo commented 7 years ago

Originally I picked velocity for this project as I was familiar with it and I knew it to be fast, but lately I've been exploring other alternatives. The v0.3.0 is refactored in way that allows you to change the animation engine, although it is still a bit of a hassle, so in that sense there's no need to change the default animation engine. However, I really like what Popmotion, mo.js and anime are doing.

The plan is to try out each engine, do a little benchmarking and possibly change the default animation engine for the v1.0.0 release. Or better yet, make plugins for each engine so the user can choose which engine to use ;)

niklasramo commented 7 years ago

Alrighty, spend some time comparing the libraries and I'm really starting to like anime. It's much smaller than the alternatives (only 11kb minified), plenty fast and simple to use. I just might change it as the default animation engine if it works nicely in my tests, let's see.

niklasramo commented 7 years ago

Okay, did a little review and concluded that Velocity is still the best option to use as the default animation engine. If we want to push the performance to the max I think the best solution would be providing bindings for gsap at some point.