Jquery Simple Animation Tutorial With Code

Jquery Simple Animation Tutorial With Code

Type This Code For Your Text Editor And Open Your Browser And Show This Jquery Animation Effects

<!doctype html>
<html>
<head>
/* This Is Jquery Documention Link */
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>

<meta charset="utf-8">
<title>Untitled Document</title>
/* And Now Type For This Jquery Srcipt Animation Effect */
<script>
$(document).ready(function(){
$("button").click(function(){
var div=$("div");
div.animate({width:'300px',opacity:'0.4'},"slow");
div.animate({height:'300px',opacity:'0.8'},"slow");
div.animate({width:'100px',opacity:'0.4'},"slow");
div.animate({height:'100px',opacity:'0.8'},"slow");

});
});
</script>
</head>
<body>
/* Now Create a Button For This Call Of Jquery Animation */
<button>start animation</button>
/* This Jquery Style */
<div style="width:80px;height:80px;background-color:#F00;position:absolute;">
</div>
</body>
</html>





Related Post

Next
Previous
Click here for Comments

0 comments:

Thnak You For Comment And For Your Question, Answer Very Soon.