jquery - Why animated image takes a moment to display clearly? -


why image animated jquery takes moment display clearly?

to understand problem here jsfiddle

here when click button image gets large , takes while image clear.

how correct problem?

here code

$(document).ready(function(){           $("#btn").click(function(){                 $("#im").animate({width:200,height:200});          }); }); 

i think you're seeing browser optimization when asked scale images in animation. using fast scaling algorithm during animation make animation go quicker , using more accurate scaling algorithm once animation stops.

you can read scaling algorithm changes here: https://bugs.webkit.org/show_bug.cgi?id=56627

also, here's info on how different browsers scale images differently: http://entropymine.com/resamplescope/notes/browsers/


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -