$.effects.transfer = function(o) {
return this.queue(function() {
- var elem = $(this),
- target = $(o.to),
+ var elem = $( this ),
+ target = $( o.to ),
endPosition = target.offset(),
animation = {
top: endPosition.top,
width: target.innerWidth()
},
startPosition = elem.offset(),
- transfer = $('<div class="ui-effects-transfer"></div>')
- .appendTo(document.body)
- .addClass(o.className)
+ transfer = $( '<div class="ui-effects-transfer"></div>' )
+ .appendTo( document.body )
+ .addClass( o.className )
.css({
top: startPosition.top,
left: startPosition.left,
width: elem.innerWidth(),
position: 'absolute'
})
- .animate(animation, o.duration, o.easing, function() {
+ .animate( animation, o.duration, o.easing, function() {
transfer.remove();
(o.complete && o.complete.apply(elem[0], arguments));
elem.dequeue();