PluginProbe
RSVP and Event Management / 1.3.0
RSVP and Event Management v1.3.0
trunk 0.5.0 0.6.0 0.7.0 0.8.0 0.9.0 0.9.5 1.0.0 1.1.0 1.2.0 1.2.1 1.3.0 1.3.1 1.3.2 1.5.0 1.6.0 1.6.1 1.6.2 1.6.5 1.7.0 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 All 136 releases
rsvp / jquery-ui-1.7.2.custom / development-bundle / ui / effects.transfer.js

effects.transfer.js in RSVP and Event Management 1.3.0, at jquery-ui-1.7.2.custom/development-bundle/ui/effects.transfer.js

46 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*
2 * jQuery UI Effects Transfer 1.7.2
3 *
4 * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
5 * Dual licensed under the MIT (MIT-LICENSE.txt)
6 * and GPL (GPL-LICENSE.txt) licenses.
7 *
8 * http://docs.jquery.com/UI/Effects/Transfer
9 *
10 * Depends:
11 * effects.core.js
12 */
13 (function($) {
14
15 $.effects.transfer = function(o) {
16 return this.queue(function() {
17 var elem = $(this),
18 target = $(o.options.to),
19 endPosition = target.offset(),
20 animation = {
21 top: endPosition.top,
22 left: endPosition.left,
23 height: target.innerHeight(),
24 width: target.innerWidth()
25 },
26 startPosition = elem.offset(),
27 transfer = $('<div class="ui-effects-transfer"></div>')
28 .appendTo(document.body)
29 .addClass(o.options.className)
30 .css({
31 top: startPosition.top,
32 left: startPosition.left,
33 height: elem.innerHeight(),
34 width: elem.innerWidth(),
35 position: 'absolute'
36 })
37 .animate(animation, o.duration, o.options.easing, function() {
38 transfer.remove();
39 (o.callback && o.callback.apply(elem[0], arguments));
40 elem.dequeue();
41 });
42 });
43 };
44
45 })(jQuery);
46