jQuery UI Transfer Effect

The transfer animation draws a temporary outline between a source element and a target element so the user can see a visual relationship between them.

This is a jQuery UI effect, so the page using it must load jQuery UI in addition to jQuery.

Current guidance: the named transfer effect form is deprecated in jQuery UI. Use the .transfer() method for new code. The visual purpose is the same.

Syntax and Main Options Top ↑

The general form is $(selector).effect(effectName, options, duration, complete). The options available depend on the selected effect.

  • to: Target selector or element.
  • className: Optional class added to the temporary transfer element.
  • duration: Animation duration.
  • complete: Function called after the transfer completes.

Examples Top ↑

Legacy effect syntax

$( "#element" ).effect( "transfer", { to: $( "#target" ) }, 600 );

Transfer from one element to another

$( "#d1" ).transfer({
    to: $( "#d2" ),
    duration: 600
});

Run the transfer from a button

$( "#b1" ).on( "click", function () {
    $( "#d1" ).transfer({
        to: $( "#d2" ),
        duration: 600
    });
});

Style the temporary transfer outline

.ui-effects-transfer {
    border: 5px dotted red;
}

Open the Transfer Effect demo →

View demo of all jQuery UI effects →

When to Use This Effect Top ↑

Use this effect when the animation itself helps explain a state change or draws attention to an element. For routine interfaces, keep motion short and purposeful so it does not distract from the content.

← Previous effect

Back to jQuery Effects · jQuery Tutorials Home






plus2net.com






✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer