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

Set default easing globally or for a timeline #152

Closed
tomsercu opened this issue Apr 11, 2017 · 3 comments
Closed

Set default easing globally or for a timeline #152

tomsercu opened this issue Apr 11, 2017 · 3 comments
Assignees
Milestone

Comments

@tomsercu
Copy link

Is there a way to set the default easing either globally,
or a default easing value for a specific timeline?
I imagine something like this:

TL = anime.timeline({autoplay:false,
                   easing:'linear',  // DOESNT WORK
                   update: function(anim) {seekbar.value=anim.progress;}  });
@tomsercu
Copy link
Author

Actually uit would make sense to have anime.setDefaults() and anime.timeline() to set defaults for all tweenSettings like default duration, delay, elasticity etc

@juliangarnier
Copy link
Owner

That's an interesting idea, will look into this.

@juliangarnier juliangarnier self-assigned this May 4, 2017
@juliangarnier juliangarnier added this to the 2.1.0 milestone Sep 17, 2017
@juliangarnier
Copy link
Owner

Added timeline parameters inheritance in 2.1.0 (targets, easing, duration, delay, round)

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