ios - JQuery manipulate div width on iPad / iPhone -
i have number of divs change 0 variable width.
doesn't work on ipad/iphone; divs stay @ 0
get html:
var items = { item1:22, item2:55, item3:88, item4:36 }; (var key in items ){ $('.bars').append("<li><div data-percentage='"+items[key]+"' data-title='"+key+"' class='bar'></div></li>"); };
display
function animate(){ $(".bars .bar").delay(1000).each(function(i){ var percentage = $(this).data('percentage'); $(this).delay(i+"00").animate({'width': percentage + '%'}, 700); }); }
i've tired changing animate width & css doesn't work.
why seem happen on apple devices?
any solutions?
thank
solved! problem css nothing jquery animate
Comments
Post a Comment