Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
poojitha-ch authored Nov 2, 2024
1 parent 2a22b2a commit 1859448
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,7 @@ gsap.from('.first', {
}
});

/*gsap.to('.first', {
x: '100%', // Move the image 100% to the right
scrollTrigger: {
trigger: '.first',
duration:13,
start: 'top top', // Start the animation when the top of the image is at the top of the viewport
end: 'bottom bottom', // End the animation when the bottom of the image is at the bottom of the viewport
scrub: 3, // Smooth scrolling effect
markers: true // Display markers for debugging (you can remove this in production)
}
});*/

/*gsap.utils.toArray('.slide').forEach((slide, index) => {
gsap.set(slide, { opacity: 0, y: 50 }); // Initial opacity and position
ScrollTrigger.create({
trigger: slide,
start: "top center",
onEnter: () => gsap.to(slide, { opacity: 1, y: 0, duration: 0.5 }),
});
});*/
// GSAP.fromTo animation
window.onload = function () {
// GSAP.fromTo animation
Expand Down Expand Up @@ -79,4 +60,4 @@ gsap.from('.first', {
markers: false,
toggleActions: 'play reverse play reverse'
}
});
});

0 comments on commit 1859448

Please sign in to comment.