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

Add more easing options like elastic & bounce #50

Closed
charlesr1971 opened this issue Jun 5, 2019 · 2 comments
Closed

Add more easing options like elastic & bounce #50

charlesr1971 opened this issue Jun 5, 2019 · 2 comments
Labels
feature request New feature or request

Comments

@charlesr1971
Copy link

Currently, there is only one easing option:

easeInOut()

It would be nice to offer some more options, like:

Bounce
Quad
Elastic
Custom Bezier

Maybe you could just attach a library to zDog like easing.js:

https://github.com/rdy/easing-js/blob/master/src/easing.js

@charlesr1971 charlesr1971 changed the title Add more easing options like elastic & bounce FEATURE REQUEST: Add more easing options like elastic & bounce Jun 5, 2019
@desandro desandro changed the title FEATURE REQUEST: Add more easing options like elastic & bounce Add more easing options like elastic & bounce Jun 5, 2019
@desandro desandro added the feature request New feature or request label Jun 5, 2019
@desandro
Copy link
Member

desandro commented Jun 5, 2019

I'd prefer to keep Zdog lean. I added in easeInOut as its a good all purpose easing. If you want to use other easings, you have your choice of animation library to build on top of: anime.js, GSAP, velocity.js, or even jQuery. My recommendation is to use another easing library rather than building it into Zdog. Thanks for this feature request, but I'll have to pass.

@desandro desandro closed this as completed Jun 5, 2019
@charlesr1971
Copy link
Author

No worries. I can see your point here. I'll see if I can integrate easing.js...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Development

No branches or pull requests

2 participants