Need a bit of help with the following situation. I've a slider who's setup is like this (simplified):
<div class="slider">
<ul>
<li>...</li>
<li class="current">...</li>
<li class="center active">...</li>
<li class="current">...</li>
<li>...</li>
</ul>
</div>
.slider li {opacity: 0.3;}
.slider li.center.active {opacity: 1;}
.slider li.current:first-child {opacity: 1;} // this here doesn't work.
I can't use .slider li:nth-child(2).current {opacity: 1;}
because I'm using a slider, so the number if li
tags is different.
Is there another way, other than changing the li classes, to change the opacity of the first current
class only.