Skip to content

Commit

Permalink
Merge pull request bradtraversy#73 from khatri2002/rotating-navigatio…
Browse files Browse the repository at this point in the history
…n-style

Addition of hover effect
  • Loading branch information
bradtraversy committed Aug 3, 2021
2 parents ad88863 + e4d96f3 commit a06fa20
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rotating-nav-animation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ <h3>My Dog</h3>

<nav>
<ul>
<li><i class="fas fa-home"></i> Home</li>
<li><i class="fas fa-user-alt"></i> About</li>
<li><i class="fas fa-envelope"></i> Contact</li>
<li><i class="fas fa-home"></i><a href="#"> Home</a></li>
<li><i class="fas fa-user-alt"></i><a href="#"> About</a></li>
<li><i class="fas fa-envelope"></i><a href="#"> Contact</a></li>
</ul>
</nav>
<script src="script.js"></script>
Expand Down
11 changes: 11 additions & 0 deletions rotating-nav-animation/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,17 @@ nav ul li + li + li {
transform: translateX(-200%);
}

nav a{
color: #fafafa;
text-decoration: none;
transition: all 0.5s;
}

nav a:hover {
color: #FF7979;
font-weight: bold;
}

.content img {
max-width: 100%;
}
Expand Down

0 comments on commit a06fa20

Please sign in to comment.