lance1572 Posted March 12, 2023 Share Posted March 12, 2023 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? thanks!! Lance See the Pen ZEMrJBa by lnickel (@lnickel) on CodePen 1 Link to comment Share on other sites More sharing options...
Solution GreenSock Posted March 13, 2023 Solution Share Posted March 13, 2023 You mean like this?: See the Pen poOaVZd by GreenSock (@GreenSock) on CodePen 2 Link to comment Share on other sites More sharing options...
lance1572 Posted March 13, 2023 Author Share Posted March 13, 2023 That's it? lol! thank you!! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now