What's the syntax for using += with a variable when using the .animate function in jQuery
<p>I'm trying to animate the right margin of an element using += to continually add to the margin each time the function is called. I want the value to be a variable though and I can't figure out the syntax.</p>

<p>Here's what I have:</p>

<pre><code>$('.wide')animate({"right" : '+=320px'}, scrollSpeed, scrollEase);
</code></pre>

<p>And that works but here's what I'm trying to do:</p>

<pre><code>$('.wide').animate({"right" : +=variable}, scrollSpeed, scrollEase);
</code></pre>

<p>I'm not sure what the correct syntax is though.</p>

<p>Thans for your help.</p>
