1<!DOCTYPE html>
2<html>
3<head>
4<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
5<script>
6$(document).ready(function(){
7 $("button").click(function(){
8 $("#div1").fadeIn();
9 $("#div2").fadeIn("slow");
10 $("#div3").fadeIn(3000);
11 });
12});
13</script>
14</head>
15<body>
16
17<p>Demonstrate fadeIn() with different parameters.</p>
18
19<button>Click to fade in boxes</button><br><br>
20
21<div id="div1" style="width:80px;height:80px;display:none;background-color:red;"></div><br>
22<div id="div2" style="width:80px;height:80px;display:none;background-color:green;"></div><br>
23<div id="div3" style="width:80px;height:80px;display:none;background-color:blue;"></div>
24
25</body>
26</html>