Version 1.7 glow.tweens
API Quick Reference
JavaScript is required to use the quick reference
Functions for modifying animations
Further Info & Examples
Methods
- bounceBoth
- bounceIn
Returns the reverse of bounceOut
- bounceOut
Returns a tween which bounces against the final value 3 times before stopping
- combine
Create a tween from two tweens.
Synopsis
glow.tweens.combine(tweenIn, tweenOut);Parameters
- tweenIn
- Type
- Function
Tween to use for the first half
- tweenOut
- Type
- Function
Tween to use for the second half
Returns
Description
This can be useful to make custom tweens which, for example, start with an easeIn and end with an overshootOut. To keep the motion natural, you should configure your tweens so the first ends and the same velocity that the second starts.
Example
// 4.5 has been chosen for the easeIn strength so it // ends at the same velocity as overshootOut starts. var myTween = glow.tweens.combine( glow.tweens.easeIn(4.5), glow.tweens.overshootOut() );- easeBoth
Creates a tween which starts off slowly, accelerates then decelerates after the half way point.
- easeIn
Creates a tween which starts off slowly and accelerates.
- easeOut
Creates a tween which starts off fast and decelerates.
- elasticBoth
Returns a combination of elasticIn and elasticOut
- elasticIn
Returns the reverse of elasticOut
- elasticOut
Creates a tween which has an elastic movement.
- linear
Returns linear tween.
Synopsis
glow.tweens.linear();Returns
Description
Will transition values from start to finish with no acceleration or deceleration.
- overshootBoth
Returns a combination of overshootIn and overshootOut
- overshootIn
Returns the reverse of overshootOut
- overshootOut
Creates a tween which overshoots its end point then returns to its end point.