Although we now have great CSS animation API in modern browsers, we still should support older browser. This means we'll continue to implement animations in JS.
Great interactive tool for choosing easing function for your animation: www.gizma.com/easing/. Please note that c argument is not destination value, it's difference between starting value and end value. See this thorough explanation for more details and collection of links on easing.