Best way to insert jQuery animations

I need to make a sequence of animations in jQuery based on a timeline that is stored in a database. I save this information with the name of the function (animation, slide, fade ...), the parameters / arguments of the function and the callback of the function.

I know jQuery has a method . queue , but I really don’t know how to use it (I think it is more because I never used it).

So what is the difference between jQuery animation queue and animation functions wrapped in callbacks? Thinking about performance, what is the best way?

+3
source share
2 answers
+1

; . , :

$('#something').fadeOut().slideDown();

#something, .

+2

All Articles