Posted By

adino on 01/30/13


Tagged


Versions (?)

animate


 / Published in: HTML
 

blah

  1. <html><head><title>animate</title>
  2. <script src="http://code.jquery.com/jquery-1.9.0.min.js"></script>
  3. <div class=animated style="width:200px; height:200px; background-color:#ff00ff; display:block;"></div>
  4. <button id="go">Run!</button>
  5. $("#go").click(function() {
  6. $(".animated").animate({width:'100px'}, {duration:2000, complete: function(){
  7. $(".animated").animate({width:'200px'});
  8. }});
  9. }
  10. );
  11. </body>

Report this snippet  

You need to login to post a comment.