jQuery Animate
home
Run
screen_rotation
fullscreen
cloud_download
navigate_next
<!DOCTYPE html> <html> <head> <title>Slide Toggle- jQuery Example</title> <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"> </script> <script type="text/javascript"> $(document).ready(function(){ $("#animateButton").click(function(){ $("#demoDiv").animate({left:'100px',top:'100px'}, "slow"); }); }); </script> </head> <body> <a href="javascript:void(0)" id="animateButton"> Click To Animate </a><br> <br> <p id="demoDiv" style="width:100px;height:100px;display:block;background:yellow;position:absolute;"> Animate Me.</p> </body> </html>
<!DOCTYPE html> <html> <head> <title>Slide Toggle- jQuery Example</title> <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.4.min.js"> </script> <script type="text/javascript"> $(document).ready(function(){ $("#animateButton").click(function(){ $("#demoDiv").animate({left:'100px',top:'100px'}, "slow"); }); }); </script> </head> <body> <a href="javascript:void(0)" id="animateButton"> Click To Animate </a><br> <br> <p id="demoDiv" style="width:100px;height:100px;display:block;background:yellow;position:absolute;"> Animate Me.</p> </body> </html>
Copyrights@tutorialsplane.com