CMS Development

JonnyZOO
Contributor

Odometer animation

SOLVE

Hi there

 

I'd like to add a counter animation to the figures on this page: https://www.zoodigital.com/annual-report-glance?hs_preview=MSYkCjZv-5303386057

 

I've found a bit of code specifically for HubSpot that would be ideal, but can't seem to get it to work: http://github.hubspot.com/odometer

 

The first example on this page is what I'd be looking to achieve: http://github.hubspot.com/odometer/docs/welcome

 

This seems like it should be fairly simple - but I can't seem to crack it!

 

Any help would be appreciated.

 

Cheers, Jonny

0 Upvotes
1 Accepted solution
Jsum
Solution
Key Advisor

Odometer animation

SOLVE

@JonnyZOO,

 

You first step should probably be solving the javscript errors. go to your console (cmd + shift + i or ctr + shift +i). There are a few errors that could be interfering with the odometer script if it is not the odometer script that is the issue..

 

Also, it is pretty had to trouble shoot code without access to the troubled code. If you could either set the code up on your page and share a preview link, or create a dummy page for us to view we would be able to look at the code and check for errors. 

View solution in original post

0 Upvotes
1 Reply 1
Jsum
Solution
Key Advisor

Odometer animation

SOLVE

@JonnyZOO,

 

You first step should probably be solving the javscript errors. go to your console (cmd + shift + i or ctr + shift +i). There are a few errors that could be interfering with the odometer script if it is not the odometer script that is the issue..

 

Also, it is pretty had to trouble shoot code without access to the troubled code. If you could either set the code up on your page and share a preview link, or create a dummy page for us to view we would be able to look at the code and check for errors. 

0 Upvotes