Answer the question
In order to leave comments, you need to log in
How to make a smooth transition in display:block?
The situation is this.
<div class="mp-level mp-level-open">
<h2> MENU </h2>
<li>подменю</li>
</div>
.mp-menu > .mp-level h2 {
display: none;
}
<div class="class="mp-level mp-level-open mp-level-overlay"">
<h2> MENU </h2>
<li>подменю</li>
</div>
.mp-menu .mp-level.mp-level-overlay > h2, .mp-level.mp-level-overlay > h2 {
display: block !important;
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
transition: all 0.5s;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question