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

Any option to control the animation delay? #79

Closed
ciprianflorescu opened this issue Mar 4, 2016 · 2 comments
Closed

Any option to control the animation delay? #79

ciprianflorescu opened this issue Mar 4, 2016 · 2 comments

Comments

@ciprianflorescu
Copy link

I want to make the animations start a bit later after they got in viewport. Any option to set a delay for each animation?

@kottenator
Copy link
Owner

This was discussed in #8 issue.

Here is a snippet for you if you also want to add a delay:

var el = $('#circle'),
    _timeout,
    _delay = 500;

el.appear({ force_process: true });

el.on('appear', function() {
  _timeout = setTimeout(function() {
    el.circleProgress({ value: 0.7 });
  }, _delay);
});

el.on('disappear', function() {
  clearTimeout(_timeout);
});

@kottenator
Copy link
Owner

I believe my snippet solves the problem. I'm closing this ticket. Feel free to reopen it

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