I'm developing a one page scroll site and wanted every bullets I clicked to be active for the page I'm on. This is the example I'm doing the scroll script did not put in yet but wanted to leave the effect of clicking the bullets ready.
<nav class="nav">
<ul>
<li><a href="#">LOCALIZAÇÃO</a></li>
<li><a href="#">PROJETOS</a></li>
<li><a href="#">APARTAMENTOS</a></li>
<li><a href="#">LAZER</a></li>
</ul>
<div class="bg_bullets">
<a href="index.html" class=""><div class="bullets_one active"> </div> </a>
<a href="#" class=""><div class="bullets_two active"> </div> </a>
<a href="#" class=""><div class="bullets_three active"> </div> </a>
<a href="#" class=""><div class="bullets_four active"> </div> </a>
</div>
</nav>
#header-container .nav { position: absolute; top: 32px; letter-spacing: 1px; left:167px; } .header-container .nav li { font-size: 14px; float: left; text-transform: uppercase; margin-right: 5px; } #header-container .bg_bullets{ top:40px; position:absolute; background:url(../IMAGES/bg_bulets.png) no-repeat; width:590px; height:30px; } #header-container .bullets_one{ float: left; width: 16px; height: 16px; margin-right: 120px; background: #FFF; border-radius: 50%; border: 3px solid #D7D8DA; transition: all 0.4s ease; margin-top:-6px; margin-left:10px; position:absolute; } #header-container .bullets_one:active{ background:#CC9; } #header-container .bullets_one:hover, #header-container .bullets_three:hover, #header-container .bullets_four:hover { background:#CC9; }
If my question is still unclear I have some examples:
Example 1
Example 2 Example 3