Skip to content

Commit 0edc596

Browse files
IamEzioking-11
authored andcommitted
updated navbar
1 parent 8f4174f commit 0edc596

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

components/navbar.vue

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
/>
3333
</svg>
3434
</button>
35-
<section class="navbar top-0 left-0 w-screen fixed flex -z-5">
36-
<aside v-for="div in 4" :key="div" class="navBg"></aside>
35+
<section class="navbar top-0 w-screen fixed flex z-10">
3736
<ul
3837
v-show="isOpen"
3938
class="
@@ -95,10 +94,7 @@ export default {
9594
configNavbar () {
9695
this.openTimeline = this.$gsap
9796
.timeline({ paused: true })
98-
.to('.navbar', { zIndex: 10 })
99-
.to('.line', { duration: 0.2, stroke: '#ece9e9', stagger: 0.05 })
100-
.to('.navBg', { duration: 0.8 })
101-
.from('.navBg', { scaleY: 0, stagger: 0.3 }, 0.2)
97+
.to('.navbar', { left: 0, duration: 0.8 })
10298
.from('.list_item', { duration: 0.4, y: 20, stagger: 0.3, autoAlpha: 0 })
10399
},
104100
async openNavbar () {
@@ -153,12 +149,11 @@ export default {
153149
stroke-dashoffset: 0px;
154150
}
155151
/* NAVBAR STYLING */
156-
.navBg {
157-
width: 25%;
152+
.navbar {
158153
background-color: #111;
159-
border-bottom: 5px solid #56eefd;
154+
border-left: 5px solid #56eefd;
160155
height: 100vh;
161-
transform-origin: top left;
156+
left: 100vw;
162157
}
163158
164159
.list_item {

0 commit comments

Comments
 (0)