in jquery, how can I show a hidden div, and make it fade in?
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.
Just hide the element initially, ether with
.hide()orstyle="display: none;"(ordisplay: none;in the stylesheet). Then, just call.fadeIn(), like this:The
.fadeIn()call automatically removes thedisplay: nonewhen it fades the opacity to 100%, it won’t removevisibility: hidden;so don’t use this, or you’ll have to remove it manually.