简体   繁体   English

当我将changeInValue设置为0时,缓动函数始终返回初始值

[英]Ease Function always return beginning value when I set the changeInValue to 0

// 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;

Obviously, if the parameter of 'c' is 0, that will always return the begining value, so what should I do if I just want change the value to 0? 显然,如果“ c”的参数为0,它将始终返回初始值,因此,如果我只想将值更改为0,该怎么办?

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM