1
A
回答
1
您可以使用.fadeIn()
/.fadeOut()
或.animate({ opacity: 'toggle' })
,例如:
$(".class").hover(function() {
$(this).next('.description').fadeIn(); //or .fadeIn(2000) for 2 seconds
}, function() {
$(this).next('.description').fadeOut();
});
You can give it a try here,或较短.animate()
版本:
$(".class").hover(function() {
$(this).next('.description').animate({ opacity: 'toggle' })
});
You can try that here,在上面的代码你可以添加一个持续时间作为其中任何一个参数的下一个参数它默认是400ms。
+0
非常感谢。它为我工作。 – user346514 2010-08-10 20:17:56
相关问题
- 1. jQuery函数速度控制
- 2. jQuery scrollTo/localScroll速度控制?
- 3. 在jquery中悬停()的悬停词吗?
- 4. jQuery动画高度悬停
- 5. 悬停上的jquery灰度
- 6. 控制悬停颜色
- 7. 控制悬停标签
- 8. 更改悬停Css滑块的速度
- 9. 如何控制Jquery Testimonial速度
- 10. 跨度在IE中悬停
- 11. 快速悬停的jQuery动画
- 12. 将悬停jQuery悬停
- 13. 限制悬停在文本宽度
- 14. 悬停在悬停jQuery的/ javascript的
- 15. 在flexslider控制拇指悬停
- 16. jQuery滑块停在悬停
- 17. 在Matlab中控制快照速度
- 18. 在C#中控制gif的速度?
- 19. 在jQuery中通过keydown持续时间控制动画速度?
- 20. 暂停jQuery悬停(鼠标悬停)
- 21. 悬停不透明度的jQuery
- 22. 控制风扇速度
- 23. 控制动画速度
- 24. TextToSpeech(TTS)的控制速度
- 25. 悬停jQuery
- 26. jQuery的:悬停
- 27. 的jQuery悬停():
- 28. jQuery的悬停
- 29. jQuery的悬停
- 30. jQuery的:悬停
你使用哪种动画方法? – Sarfraz 2010-08-06 13:28:33