$(function(){ if($('#load_div span:nth-child(2)').outerWidth() <= 0){ $('#load_div span:nth-child(2)').animate({width:'440px'},10000); } })