2 * jQuery UI Effects Transfer 1.8.24
4 * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5 * Dual licensed under the MIT or GPL Version 2 licenses.
6 * http://jquery.org/license
8 * http://docs.jquery.com/UI/Effects/Transfer
11 * jquery.effects.core.js
13 (function( $, undefined ) {
15 $.effects
.transfer = function(o
) {
16 return this.queue(function() {
18 target
= $(o
.options
.to
),
19 endPosition
= target
.offset(),
22 left
: endPosition
.left
,
23 height
: target
.innerHeight(),
24 width
: target
.innerWidth()
26 startPosition
= elem
.offset(),
27 transfer
= $('<div class="ui-effects-transfer"></div>')
28 .appendTo(document
.body
)
29 .addClass(o
.options
.className
)
31 top
: startPosition
.top
,
32 left
: startPosition
.left
,
33 height
: elem
.innerHeight(),
34 width
: elem
.innerWidth(),
37 .animate(animation
, o
.duration
, o
.options
.easing
, function() {
39 (o
.callback
&& o
.callback
.apply(elem
[0], arguments
));