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,295
  • 8
  • 49
  • 69
user38208
  • 1,056
  • 1
  • 12
  • 29

1 Answers1

1

Try this:

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

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