Greensock - Now For JavaScript
Surprisingly, it is a fact: on the hub there are practically no articles about Greensock - an excellent library for script animation on Flash. Perhaps this is due to the fact that there are fewer Flash developers than web developers?
However, now it doesn’t matter anymore : Greensock v12 (aka Greensock Animation Platform or GSAP) can animate in JavaScript. Any property of any object can be animated in dozens of ways, combine animations in a timeline, pause this timeline, or deploy backwards. Just a couple of lines.
Moreover, Greensock is much faster than jQuery, YUI, MooTools or Dojo. Developers talk about thousands of percent , but why take a word when there is an animation speed test .
Details in English: www.greensock.com/v12/ , and under the cut - a summary in Russian.
The main buns of the Greensock Animation Platform:
- excellent performance (recall - test )
- wide functionality (easing like yo-yo with custom curves - these are still flowers. GSAP has, for example, a physical 2D engine. Or the ability to transform an object around a given point. Which can also be animated)
- compatibility from IE6 and higher
- independence from other plugins (and at the same time excellent compatibility with jQuery as a selector)
- almost the same syntax for JS, AS2 and AS3
- weight 7Kb (we are talking about TweenLite, for maniacs there is and TweenNano, but so far only for Flash)
- work with timeline - animations are connected in chains or made in any other order; ended animations run each other or third-party functions; timelines can be accelerated and slowed down, paused, lost in the opposite direction.
- practically any property of any object can be animated
- powerful settings for managing conflicting animations (for example, “move left” and “move right” are launched at the same time, and after a second - “move left, but at a different speed” again - what should the engine do?)
- full documentation with examples and a sandbox
- support
- free of charge (except for use in products intended for reusable commercial sale)
In general, my week began with great news! :)
PS As a postscript: have you heard of Greensock before? Is it worth publishing a couple of examples?