public class Easing extends Object
The following easing types are supported:
These built-in types may be extended using a variety of Mode.
The default easing function is "cubic-in-out" which provides suitable slow-in slow-out animation.
| Constructor and Description |
|---|
Easing() |
| Modifier and Type | Method and Description |
|---|---|
static EasingFunction |
back(double s)
Simulates backing into a parking space.
|
static EasingFunction |
back(Mode mode,
double s)
Simulates backing into a parking space.
|
static EasingFunction |
bounce()
Simulates a bouncy collision.
|
static EasingFunction |
bounce(Mode mode)
Simulates a bouncy collision.
|
static EasingFunction |
circle()
The quarter circle.
|
static EasingFunction |
circle(Mode mode)
The quarter circle
|
static EasingFunction |
cubic()
Equivalent to poly(3).
|
static EasingFunction |
cubic(Mode mode)
Equivalent to poly(3).
|
static EasingFunction |
elastic(double a,
double p)
Simulates an elastic band; may extend slightly beyond 0 and 1.
|
static EasingFunction |
elastic(Mode mode,
double a,
double p)
Simulates an elastic band; may extend slightly beyond 0 and 1.
|
static EasingFunction |
exp()
Raises 2 to a power based on t.
|
static EasingFunction |
exp(Mode mode)
Raises 2 to a power based on t.
|
static EasingFunction |
linear()
The identity function
|
static EasingFunction |
linear(Mode mode)
The identity function
|
static EasingFunction |
poly(int k)
Raises t to the specified power k (e.g., 3).
|
static EasingFunction |
poly(Mode mode,
int k)
Raises t to the specified power k (e.g., 3).
|
static EasingFunction |
quad()
Equivalent to poly(2).
|
static EasingFunction |
quad(Mode mode)
Equivalent to poly(2).
|
static EasingFunction |
sin()
Applies the trigonometric function sin.
|
static EasingFunction |
sin(Mode mode)
Applies the trigonometric function sin.
|
public static final EasingFunction linear()
public static final EasingFunction linear(Mode mode)
mode - the modepublic static final EasingFunction poly(int k)
k - the power for raising tpublic static final EasingFunction poly(Mode mode, int k)
mode - the modek - the powerpublic static final EasingFunction quad()
public static final EasingFunction quad(Mode mode)
mode - the modepublic static final EasingFunction cubic()
public static final EasingFunction cubic(Mode mode)
mode - the modepublic static final EasingFunction sin()
public static final EasingFunction sin(Mode mode)
mode - the modepublic static final EasingFunction exp()
public static final EasingFunction exp(Mode mode)
mode - the modepublic static final EasingFunction circle()
public static final EasingFunction circle(Mode mode)
mode - the modepublic static final EasingFunction elastic(double a, double p)
a - the amplitudep - the periodpublic static final EasingFunction elastic(Mode mode, double a, double p)
mode - the modea - the amplitudep - the periodpublic static final EasingFunction back(double s)
s - the overshootpublic static final EasingFunction back(Mode mode, double s)
mode - the modes - the overshootpublic static final EasingFunction bounce()
public static final EasingFunction bounce(Mode mode)
mode - the modeCopyright © 2015 gwt-d3. All rights reserved.