template.js.base.jquery.ui.effect-transfer.min.js Maven / Gradle / Ivy
/*! jQuery UI - v1.10.4 - 2014-04-02
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
(function (t) {
t.effects.effect.transfer = function (e, i) {
var s = t(this), n = t(e.to), a = "fixed" === n.css("position"), o = t("body"), r = a ? o.scrollTop() : 0, l = a ? o.scrollLeft() : 0, h = n.offset(), c = {top: h.top - r, left: h.left - l, height: n.innerHeight(), width: n.innerWidth()}, u = s.offset(), d = t("").appendTo(document.body).addClass(e.className).css({top: u.top - r, left: u.left - l, height: s.innerHeight(), width: s.innerWidth(), position: a ? "fixed" : "absolute"}).animate(c, e.duration, e.easing, function () {
d.remove(), i()
})
}
})(jQuery);