【发布时间】:2019-03-28 06:29:59
【问题描述】:
您好,我正在设置一个动画,该动画应该通过滚动使某些文本淡入/淡出。现在文字就消失了。我怎样才能让这个褪色变慢?
$(window).scroll(function() {
if ($(window).scrollTop() < 50) {
$(".centered").stop(true,true).fadeIn();
} else {
$(".centered").stop(true,true).fadeOut();
}
});
【问题讨论】:
-
我看不到你的整个代码
标签: javascript jquery