Hello! There are some small functions - easing. They allow you to change the values of variables according to certain rules.
An example of one of them (taken from the Internet)
Math.linearTween = function (t, b, c, d) { return c*t/d + b; }; @t = время @b = начальное значение @c = разница между начальным и конечным состоянием @d = продолжительность The question is: how does this duration work? I need to change the "opacity" (from 0 to 1) on an object for 10 seconds. But such a transition takes place in a second or two.
How to use these features? Or how to change the variable for N seconds?