Stuart Wright
Well-known member
Hello folks,
I have a div area which, when hovering over it, changes some <li> elements it contains from display:none to display:block.
.dap_inline:hover #dap_search_inline > ul > li > ul > li {display: block;}
The height of the div therefore expands as you hover over it and contracts as you over out.
To avoid accidental triggering of the expansion of the div, I want there to be a short (maybe 1s) delay after hovering for the elements to display:block. Is this possible? This is a 'nice to have'.
More important, I want the div to expand smoothly like ToggleTrigger does.
I've tried without success to use the transition-delay and transition min-height css to achieve this.
Any ideas please?
I have a div area which, when hovering over it, changes some <li> elements it contains from display:none to display:block.
.dap_inline:hover #dap_search_inline > ul > li > ul > li {display: block;}
The height of the div therefore expands as you hover over it and contracts as you over out.
To avoid accidental triggering of the expansion of the div, I want there to be a short (maybe 1s) delay after hovering for the elements to display:block. Is this possible? This is a 'nice to have'.
More important, I want the div to expand smoothly like ToggleTrigger does.
I've tried without success to use the transition-delay and transition min-height css to achieve this.
Any ideas please?