<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" href="resource/bootstrap/css/bootstrap.css"/> <script src="resource/jQuery/jquery-1.11.3.js"></script> <script src="resource/bootstrap/js/bootstrap.js"></script> <script> $().ready(function(){ $("button").click(function(){ $("#div1").fadeIn(); $("#div2").fadeIn(3000); $("#div3").fadeIn("slow"); }) }) </script> </head> <body> <p>Demonstrate fadeIn() with different parameters.</p> <button>Click to fade in boxes</button> <br><br> <div id="div1" style="80px;height:80px;display:none;background-color:red;"></div><br> <div id="div2" style="80px;height:80px;display:none;background-color:green;"></div><br> <div id="div3" style="80px;height:80px;display:none;background-color:blue;"></div> </body> </html>