Jump to content
Search Community

Number animation

wearetangerine
Moderator Tag

Go to solution Solved by Diaco,

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

wearetangerine
Posted

Hi everyone,

 

I was wondering if anyone could help me. I am planning on creating some infographics on a website when once scrolled to on the page, the animation will kick in. I am able to create scroll based animations however I cannot seem to create an animation that will count a number from zero to a given number on the page.

 

Does anyone have any experience of this and if so, could you point me in the right direction?

 

Many Thanks,

Mark (wearetangerine)

  • Solution
Posted

Hi wearetangerine :)

 

as you can read in Doc. : 

 

A TweenLite instance handles tweening one or more properties of any object (or array of objects) over time

 

so , pls check this out : 

See the Pen wabEyg by MAW (@MAW) on CodePen.

  • Like 1
  • Thanks 2
wearetangerine
Posted

Thank you very much :)

  • 1 year later...
Posted

Hello Diaco and Greensock,

If it was an array of the alphabet, how could I tell it to scroll through like that animation but stop at a predetermined given value?

I'm trying to do a slot machine type effect that spells out different words each time the user hits the button.

Some how I would use an array of the alphabet string?

 

Thanks

Posted

I need to go watch Wargames. :)

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.
×
×
  • Create New...