From 8724fa2bc1fd70a3a44d1c886b8471f077f50153 Mon Sep 17 00:00:00 2001 From: Balthazar Auger Date: Thu, 26 Apr 2012 00:01:42 -0300 Subject: [PATCH] Update default easing function --- src/util/misc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/misc.js b/src/util/misc.js index eddc1e3c..e3a5d859 100644 --- a/src/util/misc.js +++ b/src/util/misc.js @@ -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;