Make a bar being full every 15 seconds - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:jQuery Method Example

Description

Make a bar being full every 15 seconds

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials