It seems like after calling both result is the same.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
show/hidemethods animates width, height and opacity, whileslideUp/sideDownonly animates the height.The default duration of
show/hideis zero, so if you don’t specify a duartion it will show/hide the element immediately.If you are not seeing any difference between the methods, then they are most likely not working propery with the element that you apply them to. A common reason for that is that you are testing in Internet Explorer, and the element doesn’t have the layout flag. If you for example try to animate a table cell, the style changes that the animation does on the element won’t apply, and you will just see that the element is shown/hidden.