how to using Countup.js init via programticaly with jQuery
hello, i will use countup.js with fetch
im using with jQuery
https://preview.keenthemes.com/html/metronic/docs/general/countup
for example,
when first writing in HTML
data-kt-countup-start-val="0"
data-kt-countup-value="0"
and then call XHR
data will be change follow
data-kt-countup-start-val="5000"
data-kt-countup-value="10000"
i expect count from 5000 to 10000 but not working
any example that works as a jquery?
Replies (2)
Did you ever figure this out? I need to reinit, update or reset countup after the values have changed progmatically....
countUp.update();
Does not work, as countUp is not a function.
Cheers,
Ajar
Hi,
You should update the count-up settings using its API as shown here
countUp.update(989); Regards.