I am attempting to achieve a sliding effect for the gray panel. My goal is to have the entire div (with a gray background) slide out when clicking on "target 1", "target 2", or "target 3" before the other colored panels slide in. Subsequently, when the user clicks on "main menu link", the entire colored panel should smoothly slide out (instead of blinking out) before the gray panel slides back in. Check out this demo for more information: http://jsfiddle.net/L7v0w96s/
<div class="main-menu"><a href="#target0" class="panel">Main Menu Link</a>
</div>
<div id="right" id="main">
<div id="target0" class="panel active">This is the Target Menu<br />
<a href="#target1" class="panel">Target 1</a><br/>
<a href="#target2" class="panel">Target 2</a><br/>
<a href="#target3" class="panel">Target 3</a><br/>
</div>
<div class="panel" id="target1" style="background:green">Target 1</div>
<div class="panel" id="target2" style="background:red">Target 2</div>
<div class="panel" id="target3" style="background:yellow">Target 3</div>
</div>