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

API to set defaults? #47

Closed
t47io opened this issue Dec 26, 2016 · 4 comments
Closed

API to set defaults? #47

t47io opened this issue Dec 26, 2016 · 4 comments
Assignees
Milestone

Comments

@t47io
Copy link

t47io commented Dec 26, 2016

Something like:

KUTE.setGlobalDefault({duration: 1000});

would be a great addition, since now I have to manually pass this for every Tween. Thoughts?

@thednp
Copy link
Owner

thednp commented Dec 26, 2016

It's good idea. I will think about it.

@thednp
Copy link
Owner

thednp commented Jan 1, 2017

What about an object in the KUTE main object, something like

KUTE.defaultOptions = {
  delay: 0,
  duration: 700,
  // other options
}

@thednp
Copy link
Owner

thednp commented Jan 2, 2017

@t47io I have implemented this feature as I described above, would you be willing to do some tests as soon as I commit?

thednp added a commit that referenced this issue Jan 2, 2017
* Included fix #49
* Implemented #47
* Documentation updates
thednp added a commit that referenced this issue Jan 2, 2017
* Included fix #49
* Implemented #47
* Documentation updates
@thednp thednp added this to the 1.6.1 milestone Jan 2, 2017
@thednp thednp self-assigned this Jan 2, 2017
@thednp
Copy link
Owner

thednp commented Jan 2, 2017

OK, I updated the code, demo, please read http://thednp.github.io/kute.js/options.html to learn how to override options' default values.

@thednp thednp closed this as completed Jan 2, 2017
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

2 participants