2
* jQuery UI Effects Transfer 1.10.3
5
* Copyright 2013 jQuery Foundation and other contributors
6
* Released under the MIT license.
7
* http://jquery.org/license
9
* http://api.jqueryui.com/transfer-effect/
14
(function( $, undefined ) {
16
$.effects.effect.transfer = function( o, done ) {
19
targetFixed = target.css( "position" ) === "fixed",
21
fixTop = targetFixed ? body.scrollTop() : 0,
22
fixLeft = targetFixed ? body.scrollLeft() : 0,
23
endPosition = target.offset(),
25
top: endPosition.top - fixTop ,
26
left: endPosition.left - fixLeft ,
27
height: target.innerHeight(),
28
width: target.innerWidth()
30
startPosition = elem.offset(),
31
transfer = $( "<div class='ui-effects-transfer'></div>" )
32
.appendTo( document.body )
33
.addClass( o.className )
35
top: startPosition.top - fixTop ,
36
left: startPosition.left - fixLeft ,
37
height: elem.innerHeight(),
38
width: elem.innerWidth(),
39
position: targetFixed ? "fixed" : "absolute"
41
.animate( animation, o.duration, o.easing, function() {