/ Published in: JavaScript
Expand |
Embed | Plain Text
function animateLeft() { $('.image').animate( { 'padding-left': '+=3285px' }, // what we are animating 40000, // how fast we are animating 'easeInOutQuad', // the type of easing function() { // the callback animateRight(); }); } function animateRight() { $('.image').animate( { 'padding-left': '-=3285px' }, // what we are animating 40000, // how fast we are animating 'easeInOutQuad', // the type of easing function() { // the callback animateLeft(); }); }
You need to login to post a comment.
