I got a li element on my page which is <li class="basket last items">
.
If the user hovers over that li another div is shown which is <div class="articles">
. I want to delay the disappearance of the div on mouseout.
My current css rules:
#headlinks li.basket div.articles {
padding:5px;
width:380px;
z-index:100;
position:absolute;
border:1px solid #405ade;
-webkit-transition: display .5s all;
-webkit-transition-delay: 5s;
-moz-transition: .5s all;
-moz-transition-delay: 5s;
-ms-transition: .5s all;
-ms-transition-delay: 5s;
-o-transition: .5s all;
-o-transition-delay: 5s;
transition: .5s all;
transition-delay: 5s;
}
#headlinks li.basket:hover div.articles {
z-index:1000;
display:block;
background-color:#fff;
-webkit-transition-delay: 0s;
-moz-transition-delay: 0s;
-ms-transition-delay: 0s;
-o-transition-delay: 0s;
-transition-delay: 0s;
}
I thought with that rules the mouseout should be delayed by 5 seconds but it's not working.
Edit: Here is a jsfiddle of my problem http://jsfiddle.net/21tn6bq6/ I left out unnecessary css but basically that's my problem. I want the div to stay for some more seconds after mouseout.