Package | com.greensock.easing |
Class | public final class ElasticInOut |
Inheritance | ElasticInOut ![]() ![]() |
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.
Property | Defined By | ||
---|---|---|---|
ease : ElasticInOut [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. | ElasticInOut |
Method | Defined By | ||
---|---|---|---|
ElasticInOut(amplitude:Number = 0, period:Number = 0)
Constructor
| ElasticInOut | ||
config(amplitude:Number = 0, period:Number = 0):ElasticInOut
Permits customization of the ease with various parameters. | ElasticInOut | ||
getRatio(p:Number):Number [override]
Translates the tween's progress ratio into the corresponding ease ratio. | ElasticInOut |
ease | property |
public static var ease:ElasticInOut
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.
ElasticInOut | () | Constructor |
public function ElasticInOut(amplitude:Number = 0, period:Number = 0)
Constructor
Parametersamplitude:Number (default = 0 ) — the amplitude of the sine wave (how exaggerated its movement is). Default is 0.
| |
period:Number (default = 0 ) — the period of the sine wave (how far apart its waves are spaced, like its frequency). Default is 0.
|
config | () | method |
public function config(amplitude:Number = 0, period:Number = 0):ElasticInOut
Permits customization of the ease with various parameters.
Parameters
amplitude:Number (default = 0 ) — the amplitude of the sine wave (how exaggerated its movement is). Default is 0.
| |
period:Number (default = 0 ) — the period of the sine wave (how far apart its waves are spaced, like its frequency). Default is 0.
|
ElasticInOut — new ElasticInOut instance that is configured according to the parameters provided
|
getRatio | () | method |
override public 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)
|
Number — translated number
|