i have jquery script uses jquery-circle-progress ( third party plugin) count number. example, variable rand holds number. script finds specified element, , counts 0 number.
i detect when animation finishes. have considered waiting until element.val == rand , , execute function.
$('#circle').circleprogress({ value: (rand/100) }).on('circle-animation-progress', function(event, progress) { $(this).find('.element').html(parseint( 100 * progress * rand/100)); }); then thinking of doing like
on element.val == rand somefunction()
so waits element.val equal rand , execute function. or there easier way detect animation completion?
i know specific, tia.
a quick @ https://github.com/kottenator/jquery-circle-progress shows circle-animation-end event. i'm not familiar plugin expect hook event after call $('#circle').circleprogress() like:
$('#circle').on('circle-animation-end', function(){ alert('animation complete'); });
Comments
Post a Comment