当我将changeInValue设置为0时,Ease Function始终返回起始值

时间:2016-05-21 06:49:52

标签: javascript

// t: current time, b: begInnIng value, c: change In value, d: duration
easeOutSine: (t, b, c, d) => c * Math.sin(t/d * (Math.PI/2)) + b;

显然,如果参数为' c'是0,它将始终返回开始值,所以如果我只想将值更改为0,我该怎么办?

1 个答案:

答案 0 :(得分:0)

调用函数c(值的变化)等于-b(起始值的负数。)