Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow change of parameters for easing functions #189

Open
JanCantCode opened this issue May 9, 2024 · 0 comments
Open

allow change of parameters for easing functions #189

JanCantCode opened this issue May 9, 2024 · 0 comments

Comments

@JanCantCode
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant