GTween beta 4 has been released! This is the final beta of the library, and I am only keeping it beta for this release because there is a chance I will toy with the API a little bit more, and I’d like to clean up the demos before final (right now they are an ugly mix of demo and test file).
The main new feature in this release is a more robust synchronization model which allows you to synchronize child tweens to the delay, beginning, end or duration of its parent. This release also includes the GTweenFilter class (<0.5kb) which a number of people have been patiently waiting for. I also patched a number of bugs, added a few more simple demos, and created a MultiTween class that allows you to tween multiple objects to either the same destination property values, or different values using a single tween instance. Both of the new classes should be useful, but they are also there to serve as templates for people interested in writing their own extensions to GTween. They are not required to work with GTween normally - still just a single class. Here is the full list of changes:
- fixed a bug with autoHide (thanks to JTtheGeek)
- fixed a bug with useSmartRotation and destination values over 360 (thanks to radicalFish)
- added propertyTarget and getPropertyTarget(), to support GTweenFilter and other potential subclasses
- renamed the static “ticker” property to “activeTicker” to prevent issues in some editors due to it being named the same as the instance property. (thanks to Thomas Brekelmans)
- fixed a problem with progressPoints set to a position of 0 not firing (thanks to Toby Skinner)
- moved event meta tags to before class declaration, so they show up properly in the API documentation (thanks to Jordi Boggiano)
- updated .clone() to support .useSetSize and .useSnapping properties
- modified .addChild() to accept GTween.TWEEN_PHASE, GTween.END, GTween.DURATION, GTween.BEGINNING as a second parameter, allow more complex synchronization options.
- included GTweenFilter and MultiTween in package.
As always, you can view the latest documentation, and download the latest version of the library at gskinner.com/libraries/gtween/.