GreenSock JavaScript API Docs | All Packages | All Classes | Index | Frames No Frames |
Linear

Package | com.greensock.easing
Class | public final class Linear
Inheritance | Linear Ease Object

Linear ease with no acceleration or deceleration. Linear is identical to `Power0`.

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:Linear.easeNone});`

Copyright 2012, 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

| Property | Defined By
--- | --- | ---
|  | ease : Linear [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. | Linear
|  | easeIn : Linear [static] Linear ease with no acceleration or deceleration | Linear
|  | easeInOut : Linear [static] Linear ease with no acceleration or deceleration | Linear
|  | easeNone : Linear [static] Linear ease with no acceleration or deceleration (for backwards compatibility) | Linear
|  | easeOut : Linear [static] Linear ease with no acceleration or deceleration | Linear

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | Linear() Constructor | Linear
|  | getRatio(p:Number):Number Translates the tween's progress ratio into the corresponding ease ratio. | Ease

Property Detail

ease | property

`public static var ease:Linear`

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.

easeIn | property |

`public static var easeIn:Linear`

Linear ease with no acceleration or deceleration

easeInOut | property |

`public static var easeInOut:Linear`

Linear ease with no acceleration or deceleration

easeNone | property |

`public static var easeNone:Linear`

Linear ease with no acceleration or deceleration (for backwards compatibility)

easeOut | property |

`public static var easeOut:Linear`

Linear ease with no acceleration or deceleration

Constructor Detail

Linear | () | Constructor

`public function Linear()`

Constructor

Thu Dec 20 2012, 04:30 PM -06:00