Not sure how to ask this question, but here goes.
Say I have:
var foo = 'marginLeft';
How can I change it into:
marginLeft
So this would be possible:
$(element).animate({foo: 20});
Please note, not looking for this (I want the curly braces):
$(element).animate(foo,20);
Well, you should be able to get the same behavior with something like this: