Answer the question
In order to leave comments, you need to log in
Is it possible to animate flex when adding content?
There is an initial search page:
<main class="App">
<div class="container">
<header class="AppHeader_App_header__3NGN2"></header>
</div>
</main>
<main class="App">
<div class="container">
<header class="AppHeader_App_header__3NGN2"></header>
<div class="ContentFound_content__I_WkD"></div>
</div>
</main>
.App {
position: relative;
background: url("./img/bg.svg") no-repeat fixed;
background-size: cover;
min-height: 100vh;
width: 100%;
overflow-x: hidden;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
padding: 3vh 10vw;
}
Answer the question
In order to leave comments, you need to log in
First you move everything that should move, then you insert a new element and animate its appearance, then you clean up the garbage from the styles.
As an example:
If it doesn't fit, search the sandbox -
Link
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question