【发布时间】:2012-11-15 16:25:27
【问题描述】:
我的开发人员无法在 this page 上创建平稳高效的过渡。请滚动“Clockrun”徽标,并注意文本在完全可见后会发生怎样的变化(尤其是在 Chrome 中),以及滚动和滚动徽标时的滚动效果有多奇特。
这里是使用的 jQuery。有没有更好的方法可以让过渡更顺畅地淡入淡出?
jQuery(document).ready(function(){
jQuery(".super_featured_desc").css("opacity",0);
jQuery(".super_featured_logo").each(function(){
jQuery(this).hover(
function () {
jQuery(this).children(".super_featured_desc").css("display","block");
jQuery(this).children(".super_featured_desc").animate({"opacity": 1}, 400);
},
function () {
jQuery(this).children(".super_featured_desc").css("display","none");
jQuery(this).children(".super_featured_desc").animate({"opacity": 0}, 400);
}
)
});
});
</script>
【问题讨论】:
-
Chrome 和 FF 对我来说都不奇怪。
-
如果您滚动并打开它会继续淡入淡出。它也不会正确淡出。
标签: jquery