Skip to content

Commit

Permalink
Merge pull request girlscript#29 from girlscript/revert-28-revert-27-…
Browse files Browse the repository at this point in the history
…pvanshika

Revert "Revert "auto-hide feature added to navbar""
  • Loading branch information
DARK-art108 authored Sep 9, 2020
2 parents ec39c06 + 6502aed commit 881c753
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ <h1>The purpose is to<br> teach, bring learning to people</h1>
</div>
</section>

<div class="nav-div">
<nav id="sideNav">

<ul>
Expand All @@ -46,7 +47,7 @@ <h1>The purpose is to<br> teach, bring learning to people</h1>
</ul>
</nav>
<img src="images/menu.png" id="menuBtn">

</div>

<!--about-->

Expand Down
8 changes: 7 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,13 @@ p {
top: 0;
background: #f67c92;
z-index: 2;
transition: 0.5s;
transition: 0.3s;
transform: translateX(100%);
transition: transform .4s cubic-bezier(.4, 0, .2, 1) .2s;
}
.nav-div:hover #sideNav {
transform: translateX(0);
transition-delay: 0.3s;
}
nav ul li {
list-style: none;
Expand Down

0 comments on commit 881c753

Please sign in to comment.