2019-10-05 21:49:10 +02:00
|
|
|
!function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(u){return u.effects.effect.clip=function(e,t){var i,f,o,c=u(this),n=["position","top","bottom","left","right","height","width"],s="show"===u.effects.setMode(c,e.mode||"hide"),r="vertical"===(e.direction||"vertical"),a=r?"height":"width",d=r?"top":"left",h={};u.effects.save(c,n),c.show(),i=u.effects.createWrapper(c).css({overflow:"hidden"}),o=(f="IMG"===c[0].tagName?i:c)[a](),s&&(f.css(a,0),f.css(d,o/2)),h[a]=s?o:0,h[d]=s?0:o/2,f.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){s||c.hide(),u.effects.restore(c,n),u.effects.removeWrapper(c),t()}})}});
|