Power2

Provides an easeIneaseOut, and easeInOut with a power (or strength) of 2 which is identical to Cubic but with a more intuitive name. The more power, the more exaggerated the easing effect. Using a numeric approach like this in the name makes experimenting easier.

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:Power2.easeOut});

Properties

easeIn : Ease

[static] Eases in with a power of 2

easeInOut : Ease

[static] Eases in and then out with a power of 2

easeOut : Ease

[static] Eases out with a power of 2

Copyright 2017, GreenSock. All rights reserved. This work is subject to theterms of useor for Club GreenSock members, the software agreement that was issued with the membership.

Get GSAP

Version: 2.0.1 updated 2018-05-30

Core

    Extras

      Plugins

        By using GreenSock code, you agree to the terms of use.

        For an all-access pass to premium content

        Join Club GreenSock