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

1 line
621 B
JavaScript
Raw Normal View History

!function(e){"function"==typeof define&&define.amd?define(["jquery","./effect"],e):e(jQuery)}(function(u){return u.effects.effect.transfer=function(e,t){var i=u(this),n=u(e.to),f="fixed"===n.css("position"),o=u("body"),s=f?o.scrollTop():0,d=f?o.scrollLeft():0,r=n.offset(),c={top:r.top-s,left:r.left-d,height:n.innerHeight(),width:n.innerWidth()},a=i.offset(),l=u("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(e.className).css({top:a.top-s,left:a.left-d,height:i.innerHeight(),width:i.innerWidth(),position:f?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){l.remove(),t()})}});