jQuery Opacity Example

<!DOCTYPE html>
<html>
<head>
    <title>Animation</title>
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            $("#button").click(function(){
                $("#image1").animate({                   
                    opacity: '0.2',
                });
            });
        });
    </script>
</head>
<body>
<form id="form">
    <img src="image1.jpg" width="200px" id="image1"><br>
    <input type="button" id="button" value="Opacity">
</form>
</body>
</html>

Comments

Post a Comment