Share Posted March 12 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 Link to comment Share on other sites More sharing options...
Solution Solution Share Posted March 13 You mean like this?: See the Pen poOaVZd by GreenSock (@GreenSock) on CodePen 1 Link to comment Share on other sites More sharing options...
Author Share Posted March 13 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