Ads

Saturday, 10 January 2015

snabbt.js – Minimalistic animation library

snabbt

Download Demo
snabbt.js is a minimalistic javascript animation library. It focuses on moving things around. It will translate, rotate, scale, skew and resize your elements. By including matrix multiplication operations, transforms can be combined in any way you want. The end result is then set via CSS3 transform matrices.
snabbt.js is built to be fast. It will only animate things that modern browsers can animate cheaply: transforms and opacity. The goal is to make a library that will let the user make smooth animations without needing to know too much about browser rendering.
Note: For convenience, width and height are animatable too, but beware since they may cause page reflows and slow down your animations.

Limitations
  • All transforms work on pixels or radians. Any unit conversion has to be done beforehand.
  • No abritrary property animations, e.g. colors, padding, margin or line height animations.
  • For performance reasons, snabbt.js never queries the DOM. This means that in some cases you need to store end transforms yourself.





No comments:

Post a Comment