CSS-style easing in JavaScript.