I'm trying to animate a div into three others where 2 divs are overlapping the animated div.
* {
  position:relative;
}
#left {
   background-color: red;
   width: 100px;
   height: 40px;
   z-index: 2;
 }
    
#right1 {
   background-color: green;
   width: 100px;   
   height: 20px;
   z-index: 5;
   
 }
 
 #right2 {
   background-color: blue;
   width: 100px;
   height: 20px;
   z-index: 1;
 }
 
  #right3 {
   background-color: yellow;
   width: 100px;
   height: 20px;
   z-index: 5;
 } 
 
 #groupe{
   display:flex;
   flex-direction:column;
   transform:translateX(-30px);
   
 }<div style="display:flex;flex-direction:row;align-items:center;">
    <div id="left">      
    </div>
    <div id="groupe">        
        <div id="right1"></div>
        <div id="right2"></div>
        <div id="right3"></div>
    </div>
</div>The "groupe"- ID should fit into the others like this:
Solutions I've tried: Set divs to position relative and animate margin-left is not a opportunity

 
    