Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Matheus Dias

ScrollTrigger change number

Recommended Posts

So, first of all, i'm starting with GSAP and ScrollTrigger and i'm loving it!

I searched a lot but surprisingly i haven't found what i want: I want that the number counts up according to the scroll. On the example pen, when you scroll down, it scrubs the size of the number, but wht i want is that when i scroll, the number keep counting to a x limit, let's say 1000, so as i scroll, the number will count from 0 to 1000. How can i do something like that?

See the Pen vYLPYBv by Maath (@Maath) on CodePen

Share this post


Link to post
Share on other sites

Hey @Matheus Dias,

 

Welcome to the GreenSock Forum.

 

This could be an option

 

See the Pen rNxRNJd by mikeK (@mikeK) on CodePen

 

Happy counting ...

Mikel

  • Like 3
  • Thanks 1

Share this post


Link to post
Share on other sites

Thank you! that worked pretty well as i wanted 😄

 

btw, i'm new here so... do i need to close this topic since it's resovled? if so, how can i do this?

  • Like 1

Share this post


Link to post
Share on other sites

 

There is no need to close a post.
Your confirmation that it helps you is enough.

  • Like 2
  • Thanks 1

Share this post


Link to post
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.

×