jQuery experiments: Toggle the visibility of the sidebar
Main content
Recently, someone asked me how he could toggle the visibility of the right column of his fluid layout with negative margins.
This can be achieved in various ways. Here, I propose three simple pre-defined showing/hiding effects: Animation 1, Animation 2 and Simple Toggle. Have fun with them and, if needed, make small modifications to find the effect that suits you.
With JavaScript disabled, the elements related to the animations are needless and could confuse the user. That's why, to separate the behaviour from the content, they are generated by the jQuery script.