Live data from Hacker News

2KB JavaScript animation library

github.com

21–30 of 34 posts

Re: 2KB JavaScript animation library

#23
post #9

Earlier quoted context omitted.

Nice. I'd be interested in that and love small footprint libraries. Do you have a comparison with http://velocityjs.org/ or other popular alternatives?

In terms of performance, it outperforms all the animation libraries I’ve tried ( you can compare the stress test linked at the bottom of the page with this version made with GreenSock: http://animateplus.com/examples/stress-test/gsap/ ). In terms of weight and parse time, it’s also the fastest afaict. That being said, it’s not as powerful as GreenSock for example as it mainly focuses on performance and simplicity.

I just did -- your stress test kept my CPU and GPU at 20-25. GSAP's kept them at 13-15.

EDIT: More testing -- When I shut down all other tabs, yours dropped down to a bit lower than GSAP. But I find that a bit odd/concerning that it only performs better when it is the only thing running.

Re: 2KB JavaScript animation library

#24
Last time I used a JS animation library, I used velocity.js

While the performance was good, the main reason I would not use it again, is because the browser dev-tools do not work with velocity.js.

Does anybody know if you can use e.g. the chrome dev-tools animation tab with this library?

Re: 2KB JavaScript animation library

#27
post #24

Last time I used a JS animation library, I used velocity.js While the performance was good, the main reason I would not use it again, is because the browser dev-tools do not work with velocity.js. Does anybody know if you can use e.g. the chrome dev-tools animation tab with this library?

The reason it doesn't work is because the animations are JS based, the chrome tool is for CSS animations. I believe velocity has it's own tools for editing animations, though I've not tried them myself.
Post reply on HN