Sha256: dda3695acbf6d43568b35ff49420a5cf4d6b3c692bd78f5d96c7ebddaea6c826

Contents?: true

Size: 275 Bytes

Versions: 3

Compression:

Stored size: 275 Bytes

Contents

$(document).ready(function() {
	$('.js-counter').each(function () {
		var $this = $(this);
		jQuery({ Counter: 0 }).animate({ Counter: $this.text() }, {
			duration: 1000,
			easing: 'swing',
			step: function () {
				$this.text(Math.ceil(this.Counter));
			}
		});
	});
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
boletia_ui-0.1.2.1 vendor/assets/javascripts/counter/counter.js
boletia_ui-0.1.2 vendor/assets/javascripts/counter/counter.js
boletia_ui-0.1.1 vendor/assets/boletia_ui/javascripts/counter/counter.js