Let's take a look at animations in jQuery with two of the most useful ones:
show. jQuery provides us with the
.show() methods, which do exactly what their names suggest. Straight out of the box, these two methods don't animate; they act as simple switches, immediately hiding or showing the attached set of elements. However, both of them have several ways it can be called. First, let's take a look at the
.hide() method, and then look at its companion, the
In its most basic mode, the
.hide() method is called with no parameters, as follows:
When called like this, it immediately hides the specified set of elements. Internally, jQuery adds a style attribute to the elements ...