$(window).scroll(function(){
country.each(function(){
var top = this.getBoundingClientRect().top;
if(top < height){
country.each(function(index) {
$(this).delay(500 * index).animate({
opacity: 1
},1000);
});
}
});
});