2

I am trying to toggle a div from left to right. The following code makes it toggle from top to bottom, but how can i make it toggle from left to right?

jQuery:

$(document).ready(function(e) {
  $('#button').on('click', function() {
    $('.slidewrap').slideToggle();    
  });    
})

Fiddle here

Alex Char
  • 32,879
  • 9
  • 49
  • 70
user38208
  • 1,078
  • 1
  • 15
  • 31

1 Answers1

1

Try this:

$(this).hide("slide", { direction: "left" }, 1000);

$(this).show("slide", { direction: "left" }, 1000);
Pathik Vejani
  • 4,263
  • 8
  • 57
  • 98
Edward
  • 21
  • 1
  • 8