Skip to content

Instantly share code, notes, and snippets.

@borodatych
Created July 29, 2015 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borodatych/894901adda59da7dd8d4 to your computer and use it in GitHub Desktop.
Save borodatych/894901adda59da7dd8d4 to your computer and use it in GitHub Desktop.
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