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

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

Eases with an elastic effect either at the beginning (easeIn), the end (easeOut), or both (easeInOut). `Elastic` is a convenience class that congregates the 3 types of Elastic eases (ElasticIn, ElasticOut, and ElasticInOut) as static properties so that they can be referenced using the standard synatax, like `Elastic.easeIn`, `Elastic.easeOut`, and `Elastic.easeInOut`.

You can configure the amplitude and period of the sine wave using the `config()` method, like `TweenLite.to(obj, 1, {x:100, ease:Elastic.easeOut.config(0.5, 2)});`

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
--- | --- | ---
|  | easeIn : ElasticIn [static] Eases using a sine wave that starts slowly and then accelerates over time | Elastic
|  | easeInOut : ElasticInOut [static] Eases using a sine wave that starts slowly, then accelerates and then decelerates over time. | Elastic
|  | easeOut : ElasticOut [static] Eases using a sine wave that starts fast and then decelerates over time. | Elastic

Property Detail

easeIn | property

`public static var easeIn:ElasticIn`

Eases using a sine wave that starts slowly and then accelerates over time

easeInOut | property |

`public static var easeInOut:ElasticInOut`

Eases using a sine wave that starts slowly, then accelerates and then decelerates over time.

easeOut | property |

`public static var easeOut:ElasticOut`

Eases using a sine wave that starts fast and then decelerates over time.

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