I tried to slide in and out a DIV with the toggle function of jQuery but the result is always jumpy at the start and/or end of the animation. Here\'s the js code that I use:
Jerking happens when the parent div ".wrapper" in your case has padding.
Padding goes on the child div, not the parent. jQuery is animating height not padding.
Example:
Here's some text. And more text. Test1 Some content More blalba
Here's some text. And more text. Test1
Some content
More blalba
Hope this helps.