.scroll-container {
width: 100%;
min-height: 100vh;
display: flex;
overflow-x: auto;
scroll-snap-type: x proximity;
}
.scroll-item {
flex: 0 0 auto;
width: 100vw;
height: 100vh;
scroll-snap-align: start;
}
gsap.registerPlugin(ScrollTrigger);
gsap.to(‘.scroll-item’, {
x: () => -(document.documentElement.offsetWidth – window.innerWidth) * (document.querySelector(‘.scroll-container’).scrollLeft / (document.querySelector(‘.scroll-container’).scrollWidth – document.documentElement.offsetWidth)),
ease: ‘none’,
scrollTrigger: {
trigger: ‘.scroll-container’,
start: ‘top top’,
end: ‘bottom bottom’,
scrub: 1
},
overwrite: ‘auto’
});
4:52 "ES7+ React/Redux/React-Native and blah-blah-blah" 😂
What you have done after
Initialising useEffect
I dint understood a thing 😢😢
exactly I need. thank you
This is great! Thank you!
But why end is "2000 top"? Why 2000 pixels? I don't underestand that.
Thnx man 🔥🫡
amazing, you saved me <3
Thank you very much
Create more videos create GasP tutorial series
How to make Horizontal scroll and LocomotiveScroll using react ?
How could i pin every section that comes into view?
You are a hero!!
Hey
How fix the error when changing route with next js?
A BIIIIGGGGG Thank You 🙏 for this
Thanks a lot. Exactly what I was looking for.
Thank you so much!
Hey great tutorial, if possible make a video on while navigating to each page add a loader/page transition using Gsap in Nextjs 13
How to make this effect vertical
Simply amazing!! Short, sweet and straight to the point. You did an amazing job. Looking forward to more videos. Subbed!!
This is exactly what I needed, thank you so much!
Don't give up on the channel, there's more to come
over scrolling in mobile ??