I have a link to my div
called mySkills
, and currently the progress bars load automatically when I access my page. However, I only want the progress bars to load when I click on the link (href
) to this specific div
mySkills
. How can I achieve that functionality?
<nav id="menu">
<ul>
<li ><a href="#About">About</a></li>
<li><a href="#mySkills">Skills</a></li>
<li ><a href="#form">Contact</a></li>
</ul>
</nav>
<div class="mySkills">
<h1>John <span>Skills</span></h1>
<div class="skill">
<h6>HTML</h6>
<div class="progress_bar orange">
<div style="width: 75%;"></div>
</div>
</div>
<div class="skill">
<h6>CSS</h6>
<div class="progress_bar teal">
<div style="width: 67%;"></div>
</div>
</div>
<div class="skill">
<h6>Photoshop</h6>
<div class="progress_bar blue">
<div style="width: 80%;"></div>
</div>
</div>
<div class="skill">
<h6>PHP</h6>
<div class="progress_bar green">
<div style="width: 55%;"></div>
</div>
</div>
<div class="skill">
<h6>Javascript</h6>
<div class="progress_bar yellow">
<div style="width: 55%;"></div>
</div>
</div>
</div>