izupet / angular2-counto

Angular 2 package for nice count animations
MIT License
40 stars 13 forks source link

Screen scroll down then start the couter. #13

Closed 02harleen closed 7 years ago

02harleen commented 7 years ago

Hi, Start the counter on the screen down. Please tell us how to possible?

izupet commented 7 years ago

You mean you want to start counting animation when scrolled to some position? You need to implement some kind of scroll spy (many libraries are already available or make your own) and when your counter is in viewpoint you just update on of the counto directive parameters to run/rerun the animation. Every time you change one of the parameters, animation will perform.