I am in the process of designing a single-page website with a fixed navigation bar. The navigation bar consists of two containers, one on the left displaying headers that change dynamically when you click on the links located on the right side. I have attempted to hide these headers by setting their display property to 'none' and trying to show them using Jquery upon clicking the links, but unfortunately, my attempts have been unsuccessful so far. I am wondering if it is possible to achieve a smooth transition effect using the fade element in conjunction with Jquery to seamlessly switch between the headers when the links are clicked?
Below is a snippet of my code:
<div class="single-page-nav">
<div class="nav-container">
<div style="max-width: 1200px; min-width: 960px; margin: 0 auto; position: relative;">
<div style="position: absolute; right: 0; top: 40px; z-index: 999999;">
<a href="#section-1" class="mainNavLnk mainNav001">Home</a>
<a href="#section-2" class="mainNavLnk mainNav002">About Us</a>
<a href="#section-3" class="mainNavLnk mainNav003">Practice Areas</a>
<a href="#section-4" class="mainNavLnk mainNav004">Contact</a>
</div>
</div>
<div class="left">
<div class="header001"><h1>Doug Peterson</h1></div>
<div class="header002"><h1>About Us.</h1></div>
<div class="header003"><h1>Practice Areas.</h1></div>
<div class="header004"><h1>Contact.</h1></div>
</div>
<div class="nav"></div>
<div class="clearboth"></div>
</div>
</div>
Please provide your assistance to the individual seeking help.