Fade in the hidden <div> element in 2000 milliseconds. - Javascript jQuery

Javascript examples for jQuery:Fade

Description

Fade in the hidden <div> element in 2000 milliseconds.

Demo Code

ResultView the demo in separate window

<!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>

Related Tutorials