I have a sliding panel on my webpage that reveals the navigation (www.helloarchie.blue). I want the content inside the panel to fade in slowly when it slides out, and then fade out when the user clicks the icon to close the panel. How can I achieve this effect?
CSS: (targeting the div for fading in/out)
.sb-slidebar nav { text-align: left; }
HTML:
<div class="sb-slidebar sb-right sb-style-push sb-active">
<nav>
<div class="cl-effect-5 blah">
<a href="http://helloarchie.blue/"><span data-hover="Home">Home</span></a><br />
<a href="http://helloarchie.blue/about"><span data-hover="About">About</span></a><br />
<a href="http://helloarchie.blue/archives"><span data-hover="Archives">Archives</span></a><br />
<a href="http://helloarchie.blue/design"><span data-hover="Services">Services</span></a><br />
<a href="http://helloarchie.blue/contact-me" title="Contact Kaye at Hello Archie"><span data-hover="Contact me">Contact me</span></a><br />
</div>
</nav>
</div>
HTML (this is the icon toggle for opening the panel and initiating the fade in/out effect)
<div class="sb-toggle-right button-square menu">
<a id="menu-toggle" href="#" class="button2">
<span class="menu-bar bar1"></span>
<span class="menu-bar bar2"></span>
<span class="menu-bar bar3"></span>
</a>
</div>