Fade In Method in JQuery| Tryit Editor for Web Development
Edit This Code:
See Result »
<html> <body> <h1>Welcome To T4-Tutorials</h1> <h2>Fade In Method:</h2> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ $("#T1").fadeIn(); $("#T2").fadeIn("slow"); $("#T3").fadeIn(3500); }); }); </script> </head> <body> <button>Click to Fade in boxes</button><br><br> <div id="T1" style="width:100px;height:100px;display:none;background-color:blue;"></div><br> <div id="T2" style="width:100px;height:100px;display:none;background-color:hotpink;"></div><br> <div id="T3" style="width:100px;height:100px;display:none;background-color:purple;"></div> </body> </html>
Result: