I have also been looking for the same! I want a set of numbers to count quickly upwards from 0 to a target number when the user scrolls to this section of the site. Eg: Coffees consumed: 102, Emplyees hired: 12, number of clients: 327 etc etc
Requested the same feature from wix. This is available on SquareSpace, Weebly, Wordpress et al plus there and lots of code on Github etc that can be easily customized. eg. CountUp.js. The irony is that Wix has this feature in the dashboard analytics.
Thx Tal…I played around a bit and got something working using the following code. I just need to find a way to add a comma separator in the numbers and the currency (either USD or $). The desired effect is for the final display should read $450,000 or USD 450,000.
100
body {
font-family:Helvetica;
font-size:40px;
color:#fcdb17;
Thanks Tal. I tried the improved code and it is just returning a value of ‘100’. What I am trying to accomplish is an animated count-up to $450,000 inclusive of the comma separator and the currency (either USD or $). The desired effect is for the final display to read $450,000 or USD 450,000. I had a Wordpress plugin for this feature before I migrated to Wix and it is quite common on other websites. I have six websites that I am currently hosting with Wix and this feature is something that I would like to use more often to display numbers. Thanks.
Thx for this got it working on my site. After the counter has finished playing is it possible to replay animation on a continual loop after a delay of 3 seconds?
Hi Dor,
I’ve fixed my code above. I used the toLocaleString function instead which solved the issue. I’ve made the changes in bold so that you can see the difference. Note that you can change the duration variable to a higher number to have a smoother view of the counter.