Cquence: a very tiny JavaScript animation library
github.com
github.com
if( IE8 ){ // gemene browsers
/*
...
*/
} else { // lieve browsers
/*
...
*/
}
No, it's not about browser vs. feature detection, it's just that you made me learn two new words. :) Gotta love developers' comments expressivity!All this impressive animation frameworks will end up bringing flash animations back to the mainstream web.
Anyway, I like the idea behind this library. I like that you can compose the animation keyframes the way it does. Any suggestions that I'd make to "improve" it would probably bloat it up -- classname selectors, css-based animations/transitions. What I like most about this lib is how it does what it does in such a small package.
sequence( easIn( :id, :time, { :from }, { :to }) <-- Here easOut( :id, :time, { :from }, { :to }) <-- and Here sleep( :time ) // Wait utill time is passed )
As for the CSS properties you can animate -- the code seems neutral enough to not really pick a baseline. So you have the freedom to pick your own level of browser support.
Just a nice organised starting point, and keeping the stuff that should be your code, your code.
Could you provide some templates as well, just for the lib to be ready to use in a glance?