开发者

How to hide an element with slide effect in a specific direction with using a callback 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜