mhuggins/jquery-countTo

callback when countTo is done

hengkiardo opened this issue · 1 comments

hi @mhuggins how can we to detect if countTo has finished.
just in case, when i do count from 10 to 0, i want when the count to has arrive at 0, i want to do something callback, like submit or something.

actually this plugin very helpful.
Thanks.

Hi @Aredo, if you take a look at the README, there is an onComplete method that takes the value as a parameter. Just pass key with a function as an option when calling countTo, and you'll be able to do whatever you need. Let me know if you need more help!