diff --git a/index.html b/index.html
index 630b1a5..b9da9fe 100644
--- a/index.html
+++ b/index.html
@@ -17,6 +17,7 @@
+
@@ -99,12 +100,9 @@
BMI Calculator
+
-
+
diff --git a/navbar.js b/navbar.js
index b9578b2..b59a09d 100644
--- a/navbar.js
+++ b/navbar.js
@@ -14,14 +14,3 @@ gsap.to("#nav", {
}
})
-gsap.to("#main", {
- backgroundColor: "#000",
- scrollTrigger: {
- trigger: "main",
- scroller: "body",
- // markers:true
- start: "top -25%",
- end: "top -75%",
- scrub: 2
- }
-})
\ No newline at end of file
diff --git a/script.js b/script.js
index 62e2c42..af1a1b0 100644
--- a/script.js
+++ b/script.js
@@ -14,17 +14,18 @@ gsap.to("#nav", {
}
})
+
gsap.to("#main", {
backgroundColor: "#000",
scrollTrigger: {
- trigger: "main",
- scroller: "body",
- // markers:true
- start: "top -25%",
- end: "top -75%",
- scrub: 2
- }
-})
+ trigger: "#main",
+ scroller: "body",
+ // markers: true,
+ start: "top -25%",
+ end: "top -70%",
+ scrub: 2,
+ },
+});
// page 2
diff --git a/style.css b/style.css
index 12bf5b0..412f5a4 100644
--- a/style.css
+++ b/style.css
@@ -111,6 +111,11 @@ video {
animation: outlineAnimation 5s infinite ease-in-out;
}
+#main {
+ position: relative;
+ background-color: rgba(0, 0, 0, 0.39);
+ }
+
.main main{
width:100%;
height:calc(100% - 280px);