开发者

animate() & fadeTo() both synchronous

开发者 https://www.devze.com 2023-04-09 02:04 出处:网络
I have a problem with the following two methods. $(this).fadeTo(200, .8).animate({bottom: 130}, 200); Both are synchronous, therefore first it fades to, then it animates.

I have a problem with the following two methods. $(this).fadeTo(200, .8).animate({bottom: 130}, 200); Both are synchronous, therefore first it fades to, then it animates.

Is it possible to use fadeTo with animate?

开发者_开发问答(CSS option 'opacity' is not cross-browser compatible and therefore not an option)


$(this).animate({
  bottom: 130,
  opacity: 0.8
}, 200);

jQuery will set things up to make opacity working on IE. See Animate opacity doesn't work properly on IE

0

精彩评论

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