You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 22, 2021. It is now read-only.
I have this jquery code for re-animating counts every 3 seconds :
$(document).ready(function(){
var countUpLoop = setInterval(countUpNumbers, 3000);
countUpNumbers();
function countUpNumbers(){
$('h1.title').counterUp({
delay: 100,
time: 1000
});
};
Hi All, i needed this more reliable for a project, so i forked it and added a 'total' variable that it always relies on. If the total is missing, it will work as per the original, using the text supplied by "$this.text()".
You can look up a simple solution on the CounterUp side (rather than changing WayPoint integration) on my reply at #57 (comment). It is a needed fix anyway, even if you use the correct new WayPoint methods.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have this jquery code for re-animating counts every 3 seconds :
$(document).ready(function(){
var countUpLoop = setInterval(countUpNumbers, 3000);
countUpNumbers();
});
HTML:
<h1 class="title" data-bind="title">300</h1>
*After few interations, the counterUp change the original value of 300 to 0.
Change to:
<h1 class="title" data-bind="title">0</h1>
I don't know why, please help to figure it out. Thank you.
The text was updated successfully, but these errors were encountered: