The following code snippet is performing on smoothe animation:
$('button').animate({
'margin-top': 123,
'opacity': 1
}, 500);
Is is somehow possible to split it in two commands without having the effect of queuing the two animations?
jQelems.$divSlideButtonLeft.animate({
'margin-top': 123,
}, 500);
jQelems.$divSlideButtonLeft.animate({
'opacity': 1
}, 500);
The aim is to be able to seperate animations for one object in different functions.
If I understand your question correctly, you can use the second form of
animate()and passfalsein thequeueoption:The documentation says: