views:

21

answers:

1

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 to slide it to the right, but can't find any example/syntax how to do this.

+1  A: 

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".

Felix Kling
I swear I've tried this :D Anyway, it works - thank you!
Thomas