Update default easing function

This commit is contained in:
Balthazar Auger 2012-04-26 00:01:42 -03:00
parent d150bc8a26
commit 8724fa2bc1

View file

@ -96,7 +96,7 @@
finish = start + duration, time, pos,
onChange = options.onChange || function() { },
abort = options.abort || function() { return false; },
easing = options.easing || function(pos) { return (-Math.cos(pos * Math.PI) / 2) + 0.5; },
easing = options.easing || function(t, b, c, d) {return -c * Math.cos(t/d * (Math.PI/2)) + c + b;},
startValue = 'startValue' in options ? options.startValue : 0,
endValue = 'endValue' in options ? options.endValue : 100;
byValue = options.byValue || endValue - startValue;