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

Animation duration as option #18

Open
peirix opened this issue Apr 29, 2015 · 0 comments
Open

Animation duration as option #18

peirix opened this issue Apr 29, 2015 · 0 comments

Comments

@peirix
Copy link

peirix commented Apr 29, 2015

We have a ticker that's supposed to tick every minute, and the animation looks really weird. So it'd be good to have duration as an option. I've modified the source, and it seems to work.

this.options = {
  delay: options.delay || 1000,
  separators: options.separators != null ? options.separators : false,
  autostart: options.autostart != null ? options.autostart : true,
  duration: options.duration || 250
};

And then passed in when calling flip

this.flip(parts.eq(1), digit, this.upper, this.options.duration, function() {});
this.flip(parts.eq(3).html(digit), digit, this.lower, this.options.duration, function() { ... });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant