I have a bit different navigation on mobile devices than usual. When a user clicks on hamburger navigation has to slide in from bottom to top filling 100% of the screen and only after that content has to appear.
I have tried it with animation: slide-in; But im not sure if that is the right approach
<style>
main.slide-up {
height:100%;
overflow:hidden;
}
main.slide-up p {
animation: 1.0s slide-up;
margin-top:0%;
color: red !important;
}
@keyframes slide-up {
from {
margin-top: 100%;
height: 300%;
}
to {
margin-top: 0%;
height: 100%;
}
}
</style>
<main>
<div>Page content is here...</div>
</main>
<nav id="mobile-nav" class="slide-up">
<p>Slide up... </p>
</nav>
I have made a picture of exactly what I need.
https://ibb.co/PgyWdLm "click here for the picture"
