JQUERY中的animate动画效果,可以两种一起实现吗

$(".list li").mouseenter(function(){
$(this).find(".gtt").stop().animate({bottom:'0px'},'fast');
});
$(".list li").mouseout(function(){
$(this).find(".gtt").stop().animate({bottom:'-32px'},'fast');
});
</script>
--==============================我想让它的bottom和透明度同时变化,可以吗,bottom我已经写好了,但是透明度的变化怎么写。

第1个回答  2015-09-22
是可以的
请说出您的具体问题
我给你写个例子
第2个回答  2014-12-17
继续在后面加fadeIn()或者fadeOut()
第3个回答  推荐于2016-10-30
$(this).find(".gtt").stop().animate({bottom:'0px',opacity:"show"},'fast');

opacity的值也可以是一个百分值,比如 opacity:"0.5" 就是透明度为0.5

这种问题,应该学会用搜索引擎,百度“animate 透明度”就能出来答案,来这里问效率低下。

本回答被提问者和网友采纳
相似回答