I'm trying to scale the size of a children in a css grid when you click it, but I didn't success. The problem is that I actually didn't scale it, I just changed the column and the row position in order to fill all the grid.
div {
width: 100%;
height: 140px;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr;
grid-gap: 20px;
}
div:active {
grid-column-start: 1;
grid-column-end: 5;
grid-row-start: 1;
grid-row-end: 4;
height: 140px; //the size of the grid is 140px just because it doesn't work if you do 100%
z-index: 3;
}
As you can see the result is not the best, they don't seems to "scaled" but just coming down from the top. I tried with css grid but i don't know if it's the best way to do that (css grid instead of flexbox).

