-1
I’m doing an animation where when the TOP > 2800 the animation will start. The animation will make the numbers inside a UL LI increase from 0 until the written number.
BUG: The number sometimes goes all the way up and another one comes up, or it goes up just a little bit and when you move the screen it goes up little by little.
window.onscroll = function(){
var top = window.pageYOffset || document.documentElement.scrollTop
if( top > 2800 ) {
$('.spincrement').spincrement({
from: 0,
decimalPlaces:0 ,
duration: 4000,
});
}
};
Put your javascript together with a fictional HTML in a codepen or Jsfiddle, please.
– MuriloMittmann
you can see here friend http://somospixel.com/test under OUR PROJECTS
– kaiquemix