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.

  1. why seem happen on apple devices?

  2. any solutions?

thank

solved! problem css nothing jquery animate


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -