Collapsiblock: http://drupal.org/project/collapsiblock

I am looking for a way to allow the sidebar blocks to be collapsible left-to-right instead of top-to-bottom using the Collapsiblock module. It would basically be a way to hide the left and right-column blocks until someone clicks the tab, after which the block would expand to the width of the column. It seems as though it should be a fairly straightforward change in the JS file, but I cannot figure it out. Can anyone here provide any insight into this?


1 Answer 1


Search slideUp and slideDown in collapsiblock.jsand replace with animate, for example:


Useful post: Slide Elements in Different Directions

  • 2
    That seems to have done the trick! Thanks! To anyone wondering, I replaced the code in lines 36-42 and 53-59 with this: $(this.target).animate({width:'toggle'},slidespeed); It'll take some CSS styling to get it looking right, but this does take care of the functionality.
    – hockey2112
    Dec 13, 2012 at 20:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.