我想在页面加载2秒后淡入淡出一些文本,5秒钟后我想淡出它。小提琴here使用jquery淡入淡出文本
我曾尝试使用下面的代码尝试:
<div id="intro-wrap">
<div id="intro-text">
<h1 style="font-size: 20px; letter-spacing: 0.1em; font-family: serif; color: rgb(253, 236, 204); font-weight: 100;">Creating the world's most exceptional homes</h1>
</div>
</div>
$(window).on("load", function() {
$('#intro-wrap').fadeIn('4000', function() {
// First Animation complete
$(this).fadeOut('4000', function() {
// Second Animation complete
});
});
});
问题是文本快速出现和消失。我怎样才能让它在某个时间之后出现,让它看起来有一段时间,然后使它消失?
通行证'4000'不是''4000'' – 2014-10-29 13:42:26