I am working with HTML and CSS and I am trying to change color of first child in navigation. I am trying to achieve that all items in my navigation are in different colors and when hover on them that they rotate to side a bit. Great example is on this website here: https://www.templatemonster.com/demo/54875.html
Here is my navigation code:
.navigation li {
display: inline-block;
}
.navigation li:nth-child(1) {
background: #ffc200;
}
.navigation a {
color: #FFF;
white-space: nowrap;
padding: 25px 29px 31px;
}
.navigation a:hover,
.navigation a.active {
color: #fff;
-webkit-transform: rotate(-7deg);
transform: rotate(-7deg);
}
<nav class="navigation" role="navigation">
<ul class="primary-nav">
<li><a href="#intro">About</a></li>
<li><a href="#services">services</a></li>
<li><a href="#works">Works</a></li>
<li><a href="#teams">Our Team</a></li>
<li><a href="#testimonials">Testimonials</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
Navigation in my project is also fixed on scroll like in example.