I currently have the following
HTML
<div id="left_nav_wrapper">
<div class="sidebar_wrapper">
<div class="sidebar_header">Header</div>
<div class="sidebar_content">Content</div>
</div>
<div class="sidebar_wrapper">
<div class="sidebar_header">Header</div>
<div class="sidebar_content">Content</div>
</div>
</div>
CSS
.sidebar_wrapper { width: 150px; }
.sidebar_header { width: 150px; background-color: #F18986; }
.sidebar_content { display: none; width: 150px; margin-left: -150px; background-color: #444; }
.sidebar_header:hover + .sidebar_content { display: inherit; margin-left: 0px; }
I want when they hover over the header, the content shows (which I have done) now I want to add a transition so it slides in, when I
add transition: all 1s;
-webkit-transition: all 1s;
to the css it does not do anything, I have added it to the .sidebar_header and .sidebar_content and can not figure out why it will not use the transition when appearing.
Any help would be appreciated THANKS!