jQuery Animation basic



$("Element").show()

Invisible elements are set to visible, such as an element is defined as display: none;


$("Element").show(speed, [callback])

Speed ​​for the display speed, recommended 600 ms is better
Speed: Time, in milliseconds
Callback: callback function(optional)


$("Element").hide()

In contrast to the first function, an element is set to hidden, set to display: none;


$("Element").hide(speed, [callback])

Speed ​​for the display speed, recommended 600 ms is better
Speed: Time, in milliseconds
Callback: callback function(optional)


$("Element").toggle()

Toggles the display state of the element, if the element is visible, toggles to hidden; if the element is hidden, the switch is visible.


$("Element").toggle(speed, [callback])

Speed ​​for the display speed, recommended 600 ms is better
Speed: Time, in milliseconds
Callback: callback function(optional)




Copyright 2014-2017 by DeveloperTut.com. All Rights Reserved.
TwitterGoogle+Facebook