Is there any way to animate display: block/none ?
When clicking on div1 and div 4 - I want to animate div's 2 and 3 respectively, (perfect would be to achieve also some nice transitions), while keeping them within a flex .container 
So far, i can animate visibility and opacity (but in this case divs '2 and '3 while not-visible, still take space within .container) OR switch display: none to block (but then i lose transition of items).
I tried positioning inner div's absolute'ly, but then all responsiveness goes to hell...
Here's CodePen: http://codepen.io/adamTrz/pen/jWOJMj
 
     
    