код html тела:
<div style="background:yellow;width:500px;height:300px;">
<div id="div1" style="background:red; width:100px;height:100px; float:left;"></div>
<div id="div2" style="background:blue; width:50px;height:50px; float:right;"></div>
</div>
тогда js код:
$(function () {
$("#div1").click(function () {
$(this).effect("transfer", { to: $("#div2") }, 1000);
//$(this).effect("shake", { times: 2 }, 200);
});
});
конечно, я импортирую
<script type="text/javascript" src="js/jquery-ui-1.8.5.custom.min.js"></script>
вы можете увидеть плохое онлайн : http://jsfiddle.net/hh54188/wz2J3/
приведенный ниже эффект «встряхивания» может работать, но передача не работает
Итак, как решить проблему? Спасибо