Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishektyagi2912 committed Jan 5, 2024
1 parent 8fcc62b commit 28325da
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions globleEffect/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,27 @@ https://arvr.google.com/static/images/frames/hero/small/00466.png
ease: "none"
},
});

gsap.to("#home2 canvas", {
display: "none",
scrollTrigger: {
scrub: 1,
markers: true,
trigger: "#home2",
start: "top 60%",
end: "bottom 12%",
ease: "none",
onToggle: (self) => {
if (self.isActive) {
// Hide canvas when transitioning to video
canvas.style.display = "none";
} else {
// Show canvas when transitioning back from video
canvas.style.display = "";
}
},
},
});
ScrollTrigger.create({
trigger: "#home2",
pin: true,
Expand Down

0 comments on commit 28325da

Please sign in to comment.