(function(a){"function"===typeof define&&define.amd?define(["jquery","./effect"],a):a(jQuery)})(function(a){return a.effects.effect.clip=function(e,m){var b=a(this),l="position top bottom left right height width".split(" "),f="show"===a.effects.setMode(b,e.mode||"hide"),d="vertical"===(e.direction||"vertical"),h=d?"height":"width",d=d?"top":"left",k={},c,g;a.effects.save(b,l);b.show();c=a.effects.createWrapper(b).css({overflow:"hidden"});c="IMG"===b[0].tagName?c:b;g=c[h]();f&&(c.css(h,0),c.css(d,
g/2));k[h]=f?g:0;k[d]=f?0:g/2;c.animate(k,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){f||b.hide();a.effects.restore(b,l);a.effects.removeWrapper(b);m()}})}});