Change 'origin' of .toggle() animation in JQuery

crisss

New Member
When using .toggle() to animate an element, I have found that the element always originates from and dissapears to the left side of the page, regardless of it's margins and alignment set by CSS. I have buttons on the left ad right of a web page that each open a small panel. The buttons on the left look fine when .toggle is called on their panels, because the animation originates from that side of the page. However, for the right buttons, the panels animate from the left, crossing the entire page to the right. They end up in the right place, but is it possible to have them originate from different points?UPDATE: A dumbed-down example, here: http://jsfiddle.net/tMaJe/
 
Top