Please see this fiddle (the result window should be made large).
When one of the accordion elements shrinks down to the end, there is a glitch. I’ve been spending hours on trying to solve it. Any suggestions?
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.
This is a result of having outer margins set on the element(s) that disappears. jQuery will animate the height / width of the element until those values go down to 0, but the outer margins remain constant and the element immediately goes to display: none.
Try adding a containing element around the element you want to animate, and animate the containing element only.