I have a simple flex box:
main {
width: 660px;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
this displays my page as such:
Where the BZ image is looking like so:
#bzImage {
color: #fff;
border: white 1px solid;
background-image: url("../img/wreath.png");
background-size: contain;
background-repeat: no-repeat;
transform-origin: top;
text-align: center;
font-size: 160px;
width: 700px;
height: 650px;
display: flex;
justify-content: center;
align-items: center;
}
I'm using anime.js to animate the BZ image to be smaller (scale it down). The problem is when I do this it leaves empty space below the image that I want the rest of the elements in the flexbox to automatically move up and fill:
How can I tell flexbox to re-layout its children or otherwise use up the empty space created when an element is scaled down?

