Jade example
div.parent
div.child1
div.child2
Upon initial load, Child1 is visible. Clicking will hide Child1 and make Child2 visible. Another click will reverse this action.
During the transition between hiding and showing the children, there should be a smooth height change from 100% to 0% and vice versa. The parent element should also adjust its height accordingly to match the newly visible child.
Visually, Child1 will appear to roll up while Child2 rolls down, and the parent element will extend or contract based on the final size after transition.
The question then arises: Is it possible to achieve this effect using CSS transitions alone?