In my HTML code, I have an <aside>
and a <header>
. The <header>
contains a child element called container, which has some children including one named burger bar. What I am trying to achieve is that when I hover over the burger bar element, I want the <aside>
element to become visible. I've attempted to accomplish this using the CSS selector
header .container .burger_bar:hover + aside
, but since the aside is not positioned adjacent to the burger bar in the HTML structure, this method does not work as intended.
Furthermore...
<div class='header'>
<div class='container'>
<div class='burger_bar'>...</div>
</div>
</div>
<aside>...</aside> /* <---when hovering the burger bar this will be
transform: translate(0%) right after being transform: translate(-100%) */