Skip to content

Commit

Permalink
Merge pull request #21 from ElizabethBil/page-header
Browse files Browse the repository at this point in the history
Add Mobile Menu Animation
  • Loading branch information
ElizabethBil authored Oct 3, 2023
2 parents 8d94adb + 2dfe10f commit 4d0bdd7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
5 changes: 2 additions & 3 deletions src/css/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,10 @@
background-repeat: no-repeat;
background-size: 274px;
background-position: center bottom;
transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.is-hidden {
opacity: 0;
visibility: hidden;
pointer-events: none;
transform: translateX(100%);
}
.header-content-container {
width: 274px;
Expand Down
20 changes: 15 additions & 5 deletions src/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
<a href="./index.html#about-us" class="header-nav-link">about us</a>
</li>
<li class="header-nav-list-item">
<a href="#" class="header-nav-link">our collection</a>
<a href="./index.html#our-collection" class="header-nav-link"
>our collection</a
>
</li>
<li class="header-nav-list-item">
<a href="./index.html#order-section" class="header-nav-link"
Expand Down Expand Up @@ -92,16 +94,24 @@
</ul>
<ul class="header-mobile-nav-list">
<li class="header-nav-list-item">
<a href="#" class="header-mobile-nav-link">about us</a>
<a href="./index.html#about-us" class="header-mobile-nav-link"
>about us</a
>
</li>
<li class="header-nav-list-item">
<a href="#" class="header-mobile-nav-link">our collection</a>
<a href="./index.html#our-collection" class="header-mobile-nav-link"
>our collection</a
>
</li>
<li class="header-nav-list-item">
<a href="#" class="header-mobile-nav-link">customer order</a>
<a href="./index.html#order-section" class="header-mobile-nav-link"
>customer order</a
>
</li>
<li class="header-nav-list-item">
<a href="#" class="header-mobile-nav-link">testimonials</a>
<a href="./index.html#testimonials" class="header-mobile-nav-link"
>testimonials</a
>
</li>
</ul>
</div>
Expand Down

0 comments on commit 4d0bdd7

Please sign in to comment.