I’ve got a little function here and I want to replace some of paramaters of the animate with the passed variables .
function anibut(side,dir) {
button = $(this);
button.animate({
marginLeft: '-=3px'
}, 200)
}
I’d like the Left in marginLeft replaced with side and the – in -=3px replaced with dir .
Thanks in advance.
You can call it like this: