Skip to content

Commit

Permalink
fix:error on video position
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishektyagi2912 committed Jan 5, 2024
1 parent 8a3e28b commit 8fcc62b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 1 addition & 0 deletions globleEffect/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ canvas {
display: flex;
position: relative;
width: 100%;
height: 50vh;
border-top: 1px solid transparent;
z-index: 1;
}
Expand Down
12 changes: 0 additions & 12 deletions globleEffect/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,18 +379,6 @@ function shrinkVideoOnScroll() {
pin: true,
},
});

// Scroll-triggered animation for video positioning
gsap.to(video, {
yPercent: -30,
scrollTrigger: {
scrub: 0.4,
trigger: "#page3",
start: "bottom 20%",
end: "bottom 120%",
ease: "none",
},
});
}
shrinkVideoOnScroll();

Expand Down

0 comments on commit 8fcc62b

Please sign in to comment.