Posted By

ryarwood on 11/02/11


Tagged

javascript jquery animation easing pano


Versions (?)

jQuery Pano from Allure


 / Published in: JavaScript
 

  1. function animateLeft() {
  2. $('.image').animate(
  3. { 'padding-left': '+=3285px' }, // what we are animating
  4. 40000, // how fast we are animating
  5. 'easeInOutQuad', // the type of easing
  6. function() { // the callback
  7. animateRight();
  8. });
  9. }
  10.  
  11. function animateRight() {
  12. $('.image').animate(
  13. { 'padding-left': '-=3285px' }, // what we are animating
  14. 40000, // how fast we are animating
  15. 'easeInOutQuad', // the type of easing
  16. function() { // the callback
  17. animateLeft();
  18. });
  19. }

Report this snippet  

You need to login to post a comment.