Posted By

marshallgmoore on 05/10/11


Tagged

jquery click animation onclick


Versions (?)

jquery chained animation on click


 / Published in: jQuery
 

  1. $(function(){
  2. $('p').click(function(){
  3. $(this).animate({'paddingLeft': '30px'},
  4. {complete:function(){
  5. $(this).animate({'paddingTop': '30px'});
  6. }
  7. });
  8. });
  9. });

Report this snippet  

You need to login to post a comment.