Jump to content


Animated Counter Increment

Moderator Tag
Go to solution Solved by GreenSock,

Recommended Posts

Hi all!


I was wondering how I could get the snap to increment based on the float number I have that is in the tenths place. As you can see in the codepen, I have a number 980.4


GSAP works great animating this but unfortunately you can see it showing digits past the hundred thousandths. Is there a way to truncate it down to only show the tenths place? 







See the Pen ZEMrJBa by lnickel (@lnickel) on CodePen

Link to comment
Share on other sites

That's it? lol! thank you!!   

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.