This is amazing. I truly appreciate the support I have received from you so far. Especially in a situation like this where you want out of your way to share something that was built in to your original product.
I look forward to checking out your other products, just to I know I am in good hands with support if anything were to ever come up :)
I am using the dashboard page in my application which contains several of the Titles that use the data-end to count up to the final value.
This worked fine when I was populating the data via PHP as it was there before the JS triggered the tween plugin.
I have since switched to an AJAX style setup on that page so I can refresh the data dynamically at a set interval.
When I load the data, I am setting the value like so:
$('#totalCustomers').attr('data-end',data.general.totalCustomers);
I see this value get updated in the source to data-end="123" which is correct.
My issue / question is that the tween / count up doesn't get triggered on this so the visual display still shows 0.
Is there a way I can manually call this "Tween" method so that it will re-animate based on values that it now has?
Hi Carlhussey,
I get the point here. Actually in the current version doesn't has this feature implemented but I will help you to implement it.
1. Add the following code to your custom JS file:
2. Then right after you get different value you can re-animate it again, as an example:
I hope this will work for you
This is amazing. I truly appreciate the support I have received from you so far. Especially in a situation like this where you want out of your way to share something that was built in to your original product.
I look forward to checking out your other products, just to I know I am in good hands with support if anything were to ever come up :)
Thanks again, this worked great!
You're welcome Carlhussey
P.S: If you like our theme, it would help us a lot if you could give us five star rating on themeforest from your Downloads tab.
A huge thank you from Laborator in advance and have a great weekend!