Version 1.2Using Tweens
API Quick Reference
JavaScript is required to use the quick reference
What are tweens?
Tweens can be used as an option to a Glow animation and change how your animation moves from the start to the end. For instance, glow.tweens.easeBoth() will make the animation accelerate at the start and decelerate towards the end.
Calling glow.tweens.easeBoth() returns the tween, passing a number as a parameter will affect the severity of the acceleration / deceleration.
From a technical point of view, tweens are functions which take a number between 0 & 1 and return a number where 0 is the start point and 1 is the end point.
You can use the form below to visualise the tweens provided by glow.tweens.
Tween to view
Available tweens
View Tween
Combine Tweens
The Tween
This is a graph of the tween selected above. Click within the graph to see how it animates.