Javascript examples for jQuery Method and Property:animate
Animating with .animate() jquery to change element position
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.5.2.js"></script> <style id="compiled-css" type="text/css"> #alex{position:absolute; right:0;} </style> <script type="text/javascript"> $(window).load(function(){//from www. j a va 2s. com $(document).ready(function(){ $('#alex').animate({ right: "+=95%" }, 3000); }); }); </script> </head> <body> <span id="alex">Alex</span> </body> </html>