jquery.easing.compatibility.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Easing Compatibility v1 - http://gsgd.co.uk/sandbox/jquery/easing
  3. *
  4. * Adds compatibility for applications that use the pre 1.2 easing names
  5. *
  6. * Copyright (c) 2007 George Smith
  7. * Licensed under the MIT License:
  8. * http://www.opensource.org/licenses/mit-license.php
  9. */
  10. (function($){
  11. $.extend( $.easing,
  12. {
  13. easeIn: function (x, t, b, c, d) {
  14. return $.easing.easeInQuad(x, t, b, c, d);
  15. },
  16. easeOut: function (x, t, b, c, d) {
  17. return $.easing.easeOutQuad(x, t, b, c, d);
  18. },
  19. easeInOut: function (x, t, b, c, d) {
  20. return $.easing.easeInOutQuad(x, t, b, c, d);
  21. },
  22. expoin: function(x, t, b, c, d) {
  23. return $.easing.easeInExpo(x, t, b, c, d);
  24. },
  25. expoout: function(x, t, b, c, d) {
  26. return $.easing.easeOutExpo(x, t, b, c, d);
  27. },
  28. expoinout: function(x, t, b, c, d) {
  29. return $.easing.easeInOutExpo(x, t, b, c, d);
  30. },
  31. bouncein: function(x, t, b, c, d) {
  32. return $.easing.easeInBounce(x, t, b, c, d);
  33. },
  34. bounceout: function(x, t, b, c, d) {
  35. return $.easing.easeOutBounce(x, t, b, c, d);
  36. },
  37. bounceinout: function(x, t, b, c, d) {
  38. return $.easing.easeInOutBounce(x, t, b, c, d);
  39. },
  40. elasin: function(x, t, b, c, d) {
  41. return $.easing.easeInElastic(x, t, b, c, d);
  42. },
  43. elasout: function(x, t, b, c, d) {
  44. return $.easing.easeOutElastic(x, t, b, c, d);
  45. },
  46. elasinout: function(x, t, b, c, d) {
  47. return $.easing.easeInOutElastic(x, t, b, c, d);
  48. },
  49. backin: function(x, t, b, c, d) {
  50. return $.easing.easeInBack(x, t, b, c, d);
  51. },
  52. backout: function(x, t, b, c, d) {
  53. return $.easing.easeOutBack(x, t, b, c, d);
  54. },
  55. backinout: function(x, t, b, c, d) {
  56. return $.easing.easeInOutBack(x, t, b, c, d);
  57. }
  58. });})(jQuery);