Skip to content

Commit db14844

Browse files
committed
Scroll TRigger fix in Navbar
1 parent 5dc31cb commit db14844

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

Diff for: index.html

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ <h3>Let's Talk</h3>
5656
></path>
5757
</svg>
5858
</button>
59+
<div id="nav-bottom"></div>
5960
</nav>
6061
<div id="main">
6162
<div id="page1">

Diff for: script.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ function navAnimation() {
5050
scrollTrigger: {
5151
trigger: "#page1",
5252
scroller: "body",
53-
// markers: true,
53+
markers: true,
5454
//Markrs to see strt and end of scroll trigger
55-
start: "top 50%",
55+
start: "top 30%",
5656
scrub: true,
5757
},
5858
});
@@ -242,9 +242,9 @@ function loadingAnimaton() {
242242

243243
// LocomotiveAnimation();
244244

245-
// loadingAnimaton();
246-
// navAnimation();
247-
// page2Animation();
248-
// // page3VideoAnimation();
249-
// page4Videonimation();
250-
// page6Animation();
245+
loadingAnimaton();
246+
navAnimation();
247+
page2Animation();
248+
// page3VideoAnimation();
249+
page4Videonimation();
250+
page6Animation();

Diff for: style.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ nav button svg {
111111
} */
112112

113113
#nav-bottom {
114-
width: 79%;
114+
width: 86.2%;
115115
height: 0vh;
116116
position: absolute;
117117
/* background-color: red; */

0 commit comments

Comments
 (0)