Easing
This class implements common easing functions. The math is pretty obscure, but this cool website has nice visual illustrations of what they represent: http://xaedes.de/dev/transitions/
Methods
Reference
Methods
step0()
static step0(n)
step1()
static step1(n)
linear()
static linear(t)
ease()
static ease(t)
quad()
static quad(t)
cubic()
static cubic(t)
poly()
static poly(n)
sin()
static sin(t)
circle()
static circle(t)
exp()
static exp(t)
elastic()
static elastic(bounciness)
A basic elastic interaction, similar to a spring. Default bounciness is 1, which overshoots a little bit once. 0 bounciness doesn't overshoot at all, and bounciness of N > 1 will overshoot about N times.
Wolfram Plots:
http://tiny.cc/elastic_b_1 (default bounciness = 1) http://tiny.cc/elastic_b_3 (bounciness = 3)
back()
static back(s)
bounce()
static bounce(t)
bezier()
static bezier(x1, y1, x2, y2, epsilon?)
in()
static in easing;
out()
static out(easing)
Runs an easing function backwards.
inOut()
static inOut(easing)
Makes any easing function symmetrical.