Javascript examples for jQuery Method and Property:jQuery Method Example
Make a bar being full every 15 seconds
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-1.7.js"></script> </head> <body> <div id="loader" style="height: 2px; width: 0px; background: green;"> Test // ww w . ja v a 2 s . c o m </div> <script type="text/javascript"> $(document).ready(function(){ $('#loader').animate({width:'100px'}, 15000); }); </script> </body> </html>