Jump to content


Scroll Trigger Issue: How can I stop this Innertext from adding the decimal points?

Recommended Posts



Firstly, please forgive my incredibly rough codepen demo, the coding here is horrendous but the issue is displayed.


I am trying to get the number on the left that is pinned to change from 19 to 20 when top top hits a certain point, I have the changing of the element working, however, I don't want the counting up of the decimals inbetween, I just want the number to change from 19 to 20.


I've tried multiple ways but all seem to leave me with the same result.


Any help would be GREATLY appreciated.



See the Pen MWVwBej by PixelDynamics (@PixelDynamics) on CodePen

Link to comment
Share on other sites

Thank you so much!


Really appreciate the help!

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.