$(document).ready(function() { $(".percentage > div").each(function () { $(this).css("visibility", "hidden"); }); $(".percentage > div").each(function () { var width = $(this).width(); $(this).width(0); $(this).css("visibility", "visible"); $(this).animate({ width: width + "px" }, 1500 ); }); });