Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Add new easings #5

Open
3 tasks
geoffreydhuyvetters opened this issue Dec 5, 2016 · 6 comments
Open
3 tasks

Add new easings #5

geoffreydhuyvetters opened this issue Dec 5, 2016 · 6 comments

Comments

@geoffreydhuyvetters
Copy link
Owner

Feature:

  • step
  • bezier
  • physics (tension, spring)
@kavsingh
Copy link

Hey! Thanks for the handy lib. Perhaps have the option of passing in a function to the easing prop? One could then import default easing functions (say an easeInOut / spring fn exported by animate-value) and apply it as needed, or be able to pass in a user defined fn.

@geoffreydhuyvetters
Copy link
Owner Author

I like this idea, not a difficult thing to implement I guess.

It would have to be an easing functions that returns a value between 0 - 1

@kavsingh
Copy link

kavsingh commented Dec 12, 2016

For sure. I guess it would just receive current time as an argument?

@geoffreydhuyvetters
Copy link
Owner Author

value between 0-1 which recalculates it via easing to 0-1

@geoffreydhuyvetters
Copy link
Owner Author

PR always welcome btw :)

@kavsingh
Copy link

Of course, pull request opened 😄

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

No branches or pull requests

2 participants