I'm new in stack, so be patient with me, please. I have a simple function with parameters and I'm using Jquery:
function AnimateValues(a, b, c, d){
return $(a).stop().animate({b : c}, d);
}
now, I'd like to call it when needed eg:
AnimateValues('#div1', 'opacity', 1, 500);
AnimateValues('#div2', 'opacity', 0, 500);
AnimateValues('#div3', 'top', 20, 500);
...
but it seems only the last one is executed. Helps will be appreciate.