Mercurial > hg > ismi-richfaces
view src/main/webapp/imageServer/resources/js/jquery-ui-1.10.4/ui/minified/jquery.ui.effect-clip.min.js @ 205:f719d73383db
Merge iiif_diva branch
964846688a95cc9b0af5ade832b8d34ae4a4bc21
author | Robert Casties <casties@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 08 Jul 2019 17:55:14 +0200 |
parents | 764f47286679 |
children |
line wrap: on
line source
/*! jQuery UI - v1.10.4 - 2014-01-17 * http://jqueryui.com * Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */ (function(t){t.effects.effect.clip=function(e,i){var s,n,a,o=t(this),r=["position","top","bottom","left","right","height","width"],h=t.effects.setMode(o,e.mode||"hide"),l="show"===h,c=e.direction||"vertical",u="vertical"===c,d=u?"height":"width",p=u?"top":"left",f={};t.effects.save(o,r),o.show(),s=t.effects.createWrapper(o).css({overflow:"hidden"}),n="IMG"===o[0].tagName?s:o,a=n[d](),l&&(n.css(d,0),n.css(p,a/2)),f[d]=l?a:0,f[p]=l?0:a/2,n.animate(f,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){l||o.hide(),t.effects.restore(o,r),t.effects.removeWrapper(o),i()}})}})(jQuery);