Skip to content

Commit

Permalink
Merge pull request #37 from IshitaSatpathy/main
Browse files Browse the repository at this point in the history
navbar added #12
  • Loading branch information
IshitaSatpathy authored Oct 7, 2022
2 parents f42a956 + 8cc3863 commit 9d25941
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Ishita/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Navbar</title>
</head>

<body>
<ul>
<li>
<a href="#">Home</a>
</li>
<li>
<a href="#">About</a>
</li>
<li>
<a href="#">Services</a>
</li>
<li>
<a href="#">Team</a>
</li>
<li>
<a href="#">Contact</a>
</li>
</ul>
</body>
68 changes: 68 additions & 0 deletions Ishita/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
@import url(https://fonts.googleapis.com/css?family=Raleway:400,500,800);

body {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: 'Raleway', Arial, sans-serif;
}

ul {
margin: 0;
padding: 0;
display: flex;
}

li {
list-style: none;
}

a {
position: relative;
display: block;
margin: 0 10px;
padding: 5px 10px;
color: #333;
font-size: 30px;
text-decoration: none;
text-transform: uppercase;
transition: 0.5s;
overflow: hidden;
}

a:before {
content: "";
position: absolute;
width: 100%;
height: 5px;
top: 50%;
transform: translateY(-50%);
left: -100%;
background-color: tomato;
transition: 0.5s;
}

a:hover:before {
animation: line 0.5s linear forwards;
}

@keyframes line {
0% {
left: -100%;
height: 4px;
}
50% {
left: 0;
height: 4px;
}
100% {
left: 0;
height: 100%;
z-index: -1;
}
}

a:hover {
color: white;
}

0 comments on commit 9d25941

Please sign in to comment.