How to change the expand direction on .toggle()?
For starters, I would use .slideToggle()
instead of .toggle()
. It just a simple collapse and expand. Try that out first and see if you like that result better.
You are looking for slideToggle.
If you're lucky, you'll just need to change toggle()
to slideToggle()
.
Try this
$('blah').toggle('drop', {direction: 'right'}, 150)