Why this simple transfer effect doesn't work?
the body html code:
- <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>
then the js code:
- $(function () {
- $("#div1").click(function () {
- $(this).effect("transfer", { to: $("#div2") }, 1000);
-
- });
- });
of course I have import the
- <script type="text/javascript" src="js/jquery-ui-1.8.5.custom.min.js"></script>
you can see the bad online:http://jsfiddle.net/hh54188/wz2J3/
the below “shake”effect could work,but the transfer does't work
so,how to solve the problem?thank you