On mouse over, I want to transform the position of two flex element that are sitting next to each other as per the image below
The markup is as follows
<div class="container">
<div class="element">Normal</div>
<div class="element">Hover</div>
</div>
I want both elements to be 100% width of the parent and the second element to overflow so I can transform X on mouse over. The problem I'm having is both elements get squeezed in to the container.
I know I can wrap the two elements in another div and give it 200% width of container. But want to know if this can be done with flexbox