Animate <div> to have opacity: 0.4, height: 500px, width: 500px. - Javascript jQuery

Javascript examples for jQuery:Animation

Description

Animate <div> to have opacity: 0.4, height: 500px, width: 500px.

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").animate({
        opacity: '0.4',
        height: '500px',
        width: '500px'
    });/*from   ww  w . j a va2  s  .co  m*/
});
</script>
</head>
<body>

<div style="background:#98bf21;height:100px;width:100px;position:absolute;"></div>

</body>
</html>

Related Tutorials