Created
July 29, 2015 12:35
-
-
Save borodatych/894901adda59da7dd8d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arr = { | |
1:{ | |
anime:4000, | |
number:1540, | |
pause:0 | |
}, | |
2:{ | |
anime:3000, | |
number:12040, | |
pause:500 | |
}, | |
3:{ | |
anime:3000, | |
number:1540, | |
pause:1000 | |
} | |
}; | |
$.each(arr,function(i,e){ | |
setTimeout(function () { | |
$('.e-info__'+i).addClass('slideInDown animated').find('.b-info__count').animateNumber({ | |
number: arr[i].number | |
},arr[i].anime); | |
},arr[i].pause); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment