Packagecom.greensock.easing
Classpublic final class Cubic
InheritanceCubic Inheritance Object

Provides an easeIn, easeOut, and easeInOut with a power (or strength) of 2 which is identical to the Power2 ease. The more power, the more exaggerated the easing effect. Using a numeric approach like Power2 instead of Cubic makes experimenting easier and the code reads more intuitively.

This is one of the eases that is natively accelerated in TweenLite and TweenMax. All of the "Power" eases and their counterparts (Linear (0), Quad (1), Cubic (2), Quart (3), Quint (4), and Strong (4)) are accelerated.

Example usage:

TweenLite.to(obj, 1, {x:100, ease:Cubic.easeOut});

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



Public Properties
 PropertyDefined By
  easeIn : Ease
[static] Eases in with a power of 2
Cubic
  easeInOut : Ease
[static] eases in and then out with a power of 2
Cubic
  easeOut : Ease
[static] Eases out with a power of 2
Cubic
Property Detail
easeInproperty
public static var easeIn:Ease

Eases in with a power of 2

easeInOutproperty 
public static var easeInOut:Ease

eases in and then out with a power of 2

easeOutproperty 
public static var easeOut:Ease

Eases out with a power of 2