I’ve included the jQuery UI stuff that I need and the jQuery core but still the following wont work:
<div id="a" style="width: 500px; height: 500px; background-color: #F00; border: 1px solid #00F;">Click me</div>
<div id="b" style="width: 50px; height: 50px; background-color: #0F0; border: 1px solid #00F;"></div>
And
$(document).ready(function () {
$('#a').click(function () {
$(this).effect(
'transfer',
{ to: $('#b') },
1000
);
});
});
You can find a JSFiddle example here
For effect you need jQuery UI
Also you need the transfer css like
Demonstration