【发布时间】:2014-08-15 05:26:02
【问题描述】:
我正在尝试使页面滚动到底部的图像,并在滚动到底部的过程中淡入一些文本。我不想在向下滚动之前或在向下滚动之后淡入文本(这是当前代码的结果)。我想要一个 .animate 事件中间的定时事件。
使用引导程序加载的 HTML
<div id="scrollFixedFall">
<center>
<br><br>
<font size="200px" color="white" id="text1">A web design demonstration</font>
</center>
</div>
<div id="blueSky">
</div>
<img src="https://www.google.com/images/srpr/logo11w.png" class="img-responsive" alt="Responsive image">
带有 jquery 的 JavaScript
$(document).ready(function() {
$("body").fadeIn(1000);
setTimeout(function(){
$("#text1").fadeIn(2000);
},1000);
$("html, body, #text1").animate({ scrollTop
这是小提琴。
【问题讨论】:
标签: javascript jquery html scroll timeout