mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-12 07:43:11 +00:00
Update default easing function
This commit is contained in:
parent
d150bc8a26
commit
8724fa2bc1
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue