开发者

jquery animate and image resize flickering

开发者 https://www.devze.com 2022-12-26 08:19 出处:网络
i\'ve a problem with a resize effect that i\'ve done in http://www.mcz-scenario.it. When you click on a language, you can see the \"background\" image transferring into a certain position of the scree

i've a problem with a resize effect that i've done in http://www.mcz-scenario.it. When you click on a language, you can see the "background" image transferring into a certain position of the screen.

this is the image:

<img id="lago" src="http://www.mcz-scenario.it/images/lago.jpg" height="1070" width="1600" alt="lago" />

And this is the "resize" effect

$("#lago").animate({
height: 148,
width: 264,
top: endPosition2.top+42,
left: endPosition2.left+350+26开发者_运维问答}, 4000);

Now... I see some flickering running this animation in Firefox. How can i handle this? Is it normal because the image is too large? Help me please :(

THX


Try making the animation faster, say 500 instead of 4000. It seems less disturbing this way even if there is a bit of flicker.

A solution would be to use Flash.

0

精彩评论

暂无评论...
验证码 换一张
取 消