close
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
</head>
<body>
<h2>降下來</h2>
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
</ul>
<script type="text/javascript">
$(function(){
$('h2').hide().slideDown();
$('li').hide().each(function(index){
$(this).delay(index*500).fadeIn(500);
});
});
</script>
</body>
</html>
全站熱搜
留言列表