You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For most of the easing functions listed, some magic values are hardcoded into the formula, it would be cool to be able to configure them.
e.G: easeOutExpo
``function easeOutExpo(x: number): number {
return x === 1 ? 1 : 1 - Math.pow(2, -10 * x);
}``
why especially the power of 2? why -10 * x as the exponent and not -7 or something? would be cool to be able to try around with those values a bit ;)
The text was updated successfully, but these errors were encountered:
For most of the easing functions listed, some magic values are hardcoded into the formula, it would be cool to be able to configure them.
e.G:
easeOutExpo
``function easeOutExpo(x: number): number {
return x === 1 ? 1 : 1 - Math.pow(2, -10 * x);
}``
why especially the power of 2? why -10 * x as the exponent and not -7 or something? would be cool to be able to try around with those values a bit ;)
The text was updated successfully, but these errors were encountered: