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

Help add new easing functions #507

Open
mikebolt opened this issue Nov 6, 2019 · 5 comments
Open

Help add new easing functions #507

mikebolt opened this issue Nov 6, 2019 · 5 comments

Comments

@mikebolt
Copy link
Contributor

mikebolt commented Nov 6, 2019

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 and f(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.

@trusktr
Copy link
Member

trusktr commented Jan 15, 2020

Maybe something neat would be an easing function primitives for creating easing functions, like what popmotion has.

@dalisoft
Copy link
Collaborator

dalisoft commented Feb 9, 2020

@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

@dalisoft
Copy link
Collaborator

dalisoft commented Feb 9, 2020

Or this also may be useful https://www.npmjs.com/package/es6tween-physics

@trusktr
Copy link
Member

trusktr commented Apr 27, 2020

Nice! Let's evaluate how we may incorporate those.

@trusktr
Copy link
Member

trusktr commented Apr 27, 2020

For reference, here's the functions in popmotion for creating new curves: https://popmotion.io/api/easing.

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

No branches or pull requests

3 participants