"learning jQuery"
Bootstrap 3.3.0 Snippet by MatthewVerardo

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <h2>Learning jQuery</h2> <button type="button" class="btn btn-primary btn-lg">Click to fade in boxes</button><br><br> <div id="div1" style="width:80px;height:80px;display:none;background-color:red;"></div><br> <div id="div2" style="width:80px;height:80px;display:none;background-color:orange;"></div><br> <div id="div3" style="width:80px;height:80px;display:none;background-color:yellow;"></div> <div id="div4" style="width:80px;height:80px;display:none;background-color:green;"></div> <div id="div5" style="width:80px;height:80px;display:none;background-color:blue;"></div> <div id="div6" style="width:80px;height:80px;display:none;background-color:purple;"></div> <div id="div7" style="width:80px;height:80px;display:none;background-color:violet;"></div> </div> </div>
h2 { color:red; }
$(document).ready(function(){ $("button").click(function(){ $("#div1").fadeIn(1000); $("#div2").fadeIn(2000); $("#div3").fadeIn(3000); $("#div4").fadeIn(4000); $("#div5").fadeIn(5000); $("#div6").fadeIn(6000); $("#div7").fadeIn(7000); }); });

Related: See More


Questions / Comments: