WordPress/wp-includes/js/jquery/ui/effect-clip.min.js

9 lines
763 B
JavaScript
Raw Normal View History

/*!
* jQuery UI Effects Clip 1.13.3
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
* https://jquery.org/license
*/
(e=>{"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)})(function(r){return r.effects.define("clip","hide",function(e,t){var i={},o=r(this),n=e.direction||"vertical",c="both"===n,f=c||"horizontal"===n,c=c||"vertical"===n,n=o.cssClip();i.clip={top:c?(n.bottom-n.top)/2:n.top,right:f?(n.right-n.left)/2:n.right,bottom:c?(n.bottom-n.top)/2:n.bottom,left:f?(n.right-n.left)/2:n.left},r.effects.createPlaceholder(o),"show"===e.mode&&(o.cssClip(i.clip),i.clip=n),o.animate(i,{queue:!1,duration:e.duration,easing:e.easing,complete:t})})});