-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Help add new easing functions #507
Comments
Maybe something neat would be an easing function primitives for creating easing functions, like what popmotion has. |
@mikebolt What about https://www.npmjs.com/package/owneasing? Maybe helps user create easing by curving which can be created by almost any SVG editor |
Or this also may be useful https://www.npmjs.com/package/es6tween-physics |
Nice! Let's evaluate how we may incorporate those. |
For reference, here's the functions in popmotion for creating new curves: https://popmotion.io/api/easing. |
We could always use more easing functions.
An easing function is single-variable function that maps values in the range [0, 1] to a numeric value. Generally, we require that
f(0) = 0
andf(1) = 1
, but otherwise there are no constraints.If you want to help out feel free to submit a PR, and don't worry about code style. If you need help I can provide a template for your PR.
Tests aren't required for easing functions, but if you want to you can add the new easing function to the graphs example.
The text was updated successfully, but these errors were encountered: