Sunday 27 October 2013

expand_collapse_different_directions

Experiments | jQuery - Expand/Collapse in different directions

jQuery experiments: Expand/Collapse in different directions

the script

These jQuery examples were inspired by Karl Swedberg's article - Slide Elements in Different Directions. Here, the concept has been implemented slightly differently.

With JavaScript disabled, the links "Collapse"/"Expand" are needless and could confuse the user. That's why, to separate the behaviour from the content, the elements that trigger the animation are generated by the jQuery script.