开发者

How to hide an element with slide effect in a specific direction with using a callback function?

开发者 https://www.devze.com 2022-12-21 01:21 出处:网络
I\'m using JQuery to hide an element with slide effect like this: $(\".teaser_container:visible\").hide(\"slide\", function() {

I'm using JQuery to hide an element with slide effect like this:

$(".teaser_container:visible").hide("slide", function() {  
  doSomething();        
});

This works fine, but slides the element to the left. I want t开发者_StackOverflow中文版o slide it to the right, but can't find any example/syntax how to do this.


From the documentation:

$(".teaser_container:visible").hide("slide", { direction: "right" }, function(){});

direction

Type: String

Default: "left"

The direction of the effect. Can be "left", "right", "up", "down".

0

精彩评论

暂无评论...
验证码 换一张
取 消