jquery chained animation on click


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.