I am currently working with a div that utilizes the .animate function. The CSS for the div is set as follows:
position:fixed;
bottom:-240px;
The associated animate script looks like this:
$("#media").click(function () {
$("#mediadetails").animate({height: "425px"}, 1000);
There is also a special div to close the section:
$("#mediaclose").click(function() {
$("#mediadetails").toggle(2000);
Initially, everything works smoothly - clicking on the close button successfully closes the div. However, if you click on the media link again after closing it, the animation does not replay.
Do you have any suggestions or ideas on how to resolve this issue?