Animate CSS flex-grow property

To implement animation on flex-grow property with CSS, you can try to run the following code


Live Demo

<!DOCTYPE html>
         .mycontainer {
            display: flex;
            background-color: red;
            align-content: space-between;
         .mycontainer > div {
            background-color: white;
            text-align: center;
            line-height: 40px;
            font-size: 25px;
            width: 100px;
            margin: 5px;
         div {
            animation: myanim 4s infinite;
         @-webkit-keyframes myanim {
            30% {
               flex-grow: 3;
      <div class = "mycontainer">
         <div style = "flex-grow: 1">A1</div>
         <div style = "flex-grow: 1">A2</div>
         <div style = "flex-grow: 20">A3</div>
         <div style = "flex-grow: 1">A4</div>
         <div style = "flex-grow: 1">A5</div>