简体   繁体   中英

jQuery ui effect drop is fading

Instead of dropping in and out of the scene. The element stays put and fades out instead of dropping like it's suppose to...

What am I doing wrong here?

Thanks

$(document).ready(function () {

    $("button").click(function () {
        $(".target").hide("drop", {
            direction: "up"
        }, 1000);
    });
});

and

   <button>Show</button> 
   <div class="target">
      <img src="http://i.imgur.com/EwHWLHV.png" alt="SO" />
   </div>

http://jsfiddle.net/pGv7R/

Use different versions. Eg:- jQuery 1.11.1 + jQuery UI 1.9.2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM