Counter Animation Speed
Hi,
I had a question about the animation speed of the .counter built into Muffin Builder.
Is it possible to slow the number animation speed down?
And where would I find that script for the .counter animation speed?
Thanks,
Bob
Comments
* Animate Math | Counter, Quick Fact, etc.
*/
$('.animate-math .number').waypoint({
offset: '100%',
triggerOnce: true,
handler: function() {
var el = $(this.element).length ? $(this.element) : $(this);
var duration = Math.floor((Math.random() * 1000) + 1000);
var to = el.attr('data-to');
$({
property: 0
}).animate({
property: to
}, {
duration: duration,
easing: 'linear',
step: function() {
el.text(Math.floor(this.property));
},
complete: function() {
el.text(this.property);
}
});
if (typeof this.destroy !== 'undefined' && $.isFunction(this.destroy)) {
this.destroy();
}