I am writing my adaptive menu. Everything is working. But there is one small problem - the appearance of the item when you click on the toggler.
Now the menu block when you click on the toggler appears abruptly and immediately. I want to add an animation: a smooth appearance from top to bottom (as usual, the sidebar menu is implemented from right to left or as implemented on bootstrap). I don’t really understand what block and what to prescribe for the realization of such an effect. HTML:
<nav class="nav"> <div class="nav-wrapper"> <a href="#" class="nav-brand">BRAND</a> <label for="nav-toggler" class="nav-toggler-label" onclick></label> <input id="nav-toggler" class="nav-toggler" type="checkbox"> <div class="nav_content" id="navContent"> <ul class="nav-ul_wrapper wrapper"> <li class="nav-item nav-active"><a href="#">Main</a></li> <li class="nav-item"><a href="#">News</a></li> <li class="nav-item"><a href="#">Gallery</a></li> <li class="nav-item"><a href="#">Contacts</a></li> </ul> <form action="" class="nav-form"> <input type="search" placeholder="Search" aria-label="Search"> <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button> </form> </div> </div> </nav> CSS by clicking on toggler:
&-toggler{ display:none; &:checked ~ .nav_content{ display: flex; } } Please help me deal with this situation.

