Queue() method is used in jQuery to returns a number of animations to be performed on the elements in the jQuery object. This method is used for the continuous looping of a jquery element. It returns the effect which is used in the queue. While queue(function) is used for adding another function to the end of the queue. This is the foundation for all animations in jQuery it allows series of function execution some methods which is used in this blog for the series of a transition. slideUp(),.slideDown(),.fadeIn(), and .fadeOut() all use .animate().