Facts Numbers


#1

Hi,

On my site I use the facts widget to display the numbers 5, 802, 23, and 4169. However when I refresh the page or when I scroll, the counting animation stops and the number freezes in place (ex. 4169 stops and becomes 4168 or even lower).

Thanks


#2

Hi, yes it is happening with large numbers. Try to edit scripts.js file (theme folder > js), and change duration (duration: 2000).

//Waypoints
jQuery(function($) {
	$('.fact').waypoint(function(down) {
		$('.fact').each(function () {
			var $this = $(this);
			$({ Counter: 0 }).animate({ Counter: $this.attr('id') }, {
				duration: 1000,
				easing: 'swing',
				step: function () {
				    $this.text(Math.ceil(this.Counter));
				}
			});
		});
	}

I tried several times and it was OK.


#3

It worked thanks!