Javascript examples for jQuery:Fade
Fade in the hidden <div> element in 2000 milliseconds.
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("div").fadeIn(2000); });//from w w w . j av a 2s . c om </script> </head> <body> <div style="width:80px;height:80px;display:none;background-color:red;"></div> </body> </html>