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".
精彩评论