Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top