WordPress/wp-includes/js/jquery/ui/effect-fold.min.js
desrosj 1c26077cf1 Build/Test Tools: Update several dependencies in the 5.6 branch.
This backports several dependency updates to the 5.6 branch as a part of #52341 to allow all branches receiving security updates to run on NodeJS 14.x.

Backports [49933,49937,49939,49940,49983,49989,49990,50016,50017] to the 5.6 branch.
See #51801, #52341.
Built from https://develop.svn.wordpress.org/branches/5.6@50023


git-svn-id: http://core.svn.wordpress.org/branches/5.6@49724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-26 15:18:33 +00:00

9 lines
978 B
JavaScript

/*!
* jQuery UI Effects Fold 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
!function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(m){return m.effects.define("fold","hide",function(i,e){var t=m(this),n=i.mode,c="show"===n,f="hide"===n,o=i.size||15,s=/([0-9]+)%/.exec(o),a=!!i.horizFirst?["right","bottom"]:["bottom","right"],l=i.duration/2,u=m.effects.createPlaceholder(t),p=t.cssClip(),d={clip:m.extend({},p)},r={clip:m.extend({},p)},h=[p[a[0]],p[a[1]]],n=t.queue().length;s&&(o=parseInt(s[1],10)/100*h[f?0:1]),d.clip[a[0]]=o,r.clip[a[0]]=o,r.clip[a[1]]=0,c&&(t.cssClip(r.clip),u&&u.css(m.effects.clipToBox(r)),r.clip=p),t.queue(function(e){u&&u.animate(m.effects.clipToBox(d),l,i.easing).animate(m.effects.clipToBox(r),l,i.easing),e()}).animate(d,l,i.easing).animate(r,l,i.easing).queue(e),m.effects.unshift(t,n,4)})});