I am looking to create a basic animation that will display and hide a component.
#parent {
height: 0px;
}
<div id="parent">
<div id="child">This is some content</div>
</div>
Even after setting the parent div's height to 0, the child div remains visible. My goal is for the child div to disappear when the parent's height is set to 0.
What could be causing this issue? Any help or advice would be greatly appreciated.