Packagecom.greensock.easing
Classpublic final class BackInOut
InheritanceBackInOut Inheritance Ease

Eases in and out with an overshoot, initially dipping below the starting value before accelerating towards the end, overshooting it and easing out.

Copyright 2012, GreenSock. All rights reserved. This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for corporate Club GreenSock members, the software agreement that was issued with the corporate membership.



Public Properties
 PropertyDefined by
  ease : BackInOut
[static] The default ease instance which can be reused many times in various tweens in order to conserve memory and improve performance slightly compared to creating a new instance each time.
BackInOut
Public Methods
 MethodDefined by
  
BackInOut(overshoot:Number = 1.70158)
Constructor
BackInOut
  
config(overshoot:Number = 1.70158):BackInOut
Permits customization of the ease with various parameters.
BackInOut
  
getRatio(p:Number):Number
Translates the tween's progress ratio into the corresponding ease ratio.
BackInOut
Property detail
easeproperty
public static var ease:BackInOut

The default ease instance which can be reused many times in various tweens in order to conserve memory and improve performance slightly compared to creating a new instance each time.

Constructor detail
BackInOut()constructor
public function BackInOut(overshoot:Number = 1.70158)

Constructor

Parameters
overshoot:Number (default = 1.70158) — affects the degree or strength of the overshoot (default: 1.70158)
Method detail
config()method
public function config(overshoot:Number = 1.70158):BackInOut

Permits customization of the ease with various parameters.

Parameters
overshoot:Number (default = 1.70158) — affects the degree or strength of the overshoot (default: 1.70158)

Returns
BackInOut — new BackInOut instance that is configured according to the parameters provided
getRatio()method 
public override function getRatio(p:Number):Number

Translates the tween's progress ratio into the corresponding ease ratio. This is the heart of the Ease, where it does all its work.

Parameters
p:Number — progress ratio (a value between 0 and 1 indicating the progress of the tween/ease)

Returns
Number — translated number