I have a link that load a section of my page into a div, the div height is set to 0px and overflow is set to hidden.
I have had no problems getting the section to load from an external file, I would just like the containing div to animate getting larger after the content loads so it appears as though the content was just hidden by 'overflow: hidden' the entire time.
Is this possible without knowing the final div height beforehand?
I figured it would be possible if I could test if the content of the div was being hidden in javascript, although an hour of googling and trolling various forums has yielded nothing but a similar question asked on Experts-Exchange (which I'd rather not subscribe to just to find out the accepted response was "not possible")
Thank you in advance,
- Rennat
I have had no problems getting the section to load from an external file, I would just like the containing div to animate getting larger after the content loads so it appears as though the content was just hidden by 'overflow: hidden' the entire time.
Is this possible without knowing the final div height beforehand?
I figured it would be possible if I could test if the content of the div was being hidden in javascript, although an hour of googling and trolling various forums has yielded nothing but a similar question asked on Experts-Exchange (which I'd rather not subscribe to just to find out the accepted response was "not possible")
Thank you in advance,
- Rennat
Comment