.flip-container { display: flex; align-items: center; height: 100%; justify-content: center; } .flip-side { position: absolute; // max-width: 500px; // max-height: 500px; // width: 350px; // height: 200px; will-change: transform, opacity; backface-visibility: hidden; } .flip-front { } .flip-back { // Get the background color of node instead background-color: rgb(223, 223, 223); }