I’m working on a project where I wanted to use easing other than linear and Zeno’s paradox, but am unable to use Robert Penner’s wonderful equations.
After a little toying around, I came up with a set of equations that use square root to create a smooth tween.
The set includes the following three equations.
Math.easeOutSquare = function(t, b, c, d) {
return Math.sqrt((t/d)*c*c) * (c
The equations have the same call signature as Penner's equations and are therefore completely interchangeable. The intent is I can distribute our components with our own easing equations but allow users to utilize Penner's equations without having to hack our components.
Here's a little comparison between this equation, the built in Flash easing, and a few of Penner's equations.