Good day dear. Can you please tell me how to use CSS to delay the disappearance of list sublevels? I will give an example
ul{ list-style-type: none; } li:hover{ background-color: #0ff; cursor:pointer; } .firstLevl{ width: 100%; } .firstLevl> li{ float: left; position: relative; padding-left: 20px; border: 1px solid #000; } .popUp:hover .secondlevl{ display: block; transition: display 1s; } .secondlevl{ display: none; position: absolute; top: 100px; left: -10px; } .secondlevl li{ width: 150px; border: 1px solid #000; } .popUp2:hover .thirdLevel{ display: block; } .thirdLevel{ display:none; position: absolute; left: 120%; top: 180%; } <ul class="firstLevl"> <li class="popUp">Первый уровень +++ <ul class="secondlevl"> <li class="popUp2"> Второй уровень +++ <ul class="thirdLevel"> <li>Третий уровень</li> <li>Третий уровень</li> <li>Третий уровень</li> <li>Третий уровень</li> <li>Третий уровень</li> </ul> </li> <li>Второй уровень</li> <li>Второй уровень</li> <li>Второй уровень</li> <li>Второй уровень</li> </ul> </li> <li>Первый уровень</li> <li>Первый уровень</li> <li>Первый уровень</li> <li>Первый уровень</li> </ul> The task is how to get to the elements of the 3rd sublevel, if the lists are positioned in this way? I tried to make a delay for the transition display: none -> display: block but it did not work for me. I hope that you advise me something sensible? I can, of course, gash on JS, but I would like to hear an option on CSS If that is possible