Posted By

reynish on 08/10/10


Tagged

click animation animate


Versions (?)

Click to animate position


 / Published in: jQuery
 

  1. $('.next').click(function() {
  2. $('#foobar').animate({left: '-=1000px'}, 200);
  3. });
  4. $('.previous').click(function() {
  5. $('#foobar').animate({left: '+=1000px'}, 200);
  6. });

Report this snippet  

You need to login to post a comment.