1
2
3
4
5
6
7
8
9
10
11
jQuery.extend({
   easing: {
      easein: function(x, t, b, c, d) {
         return c*(t/=d)*t + b; // in
      },
      easeinout: function(x, t, b, c, d) {
         if (t < d/2) return 2*c*t*t/(d*d) + b;
         var ts = t - d/2;
         return -2*c*ts*ts/(d*d) + 2*c*ts/d + c/2 + b;
      }
})

Код добавляет новые типы анимации

источник: problogdesign.com

Оставьте свой комментарий