Click.

in out in-out

Code and design adapted from Easing Equations by Robert Penner.