Next.js Horizontal Scroll With Gsap ScrollTrigger

  Рет қаралды 26,352

IvanSmiths

IvanSmiths

Күн бұрын

Пікірлер: 58
@cheeky1699
@cheeky1699 10 ай бұрын
who knew adding /dist/ the import of scrollTrigger would fix the 2 hours I just spent pulling my hair why it wasn't working. Thank you.
@M_code_H
@M_code_H 5 ай бұрын
for real this guy saved me even the gsap documentation didnt mention that
@warpscore
@warpscore Жыл бұрын
This is exactly what I needed, thank you so much! Don't give up on the channel, there's more to come
@ivansmiths
@ivansmiths Жыл бұрын
You're welcome! 😎
@sergioortiz6703
@sergioortiz6703 Жыл бұрын
Amazing tutorial, I found countless demos both in react and pure javascript none of them would work properly in NextJS, thank you
@ivansmiths
@ivansmiths Жыл бұрын
Thank you! Glad it helped :)
@aflip8348
@aflip8348 Жыл бұрын
straight forward, thanks, dude! keep up the good work! 🚀
@SimPwear84
@SimPwear84 Жыл бұрын
Simply amazing!! Short, sweet and straight to the point. You did an amazing job. Looking forward to more videos. Subbed!!
@ivansmiths
@ivansmiths Жыл бұрын
Thank you, much appreciated!
@MonirHossainAbdeRabby
@MonirHossainAbdeRabby Ай бұрын
Hey, Thank you so much. Your video is helpfull.
@redirex7770
@redirex7770 10 ай бұрын
Thank you very much! I had an issue and you saved me!
@philippkretzschmar4653
@philippkretzschmar4653 Жыл бұрын
Thanks a lot. Exactly what I was looking for.
@ivansmiths
@ivansmiths Жыл бұрын
You're welcome 😎
@santinomantineo5275
@santinomantineo5275 10 ай бұрын
Que crack, buenisimo el tutorial, super simple y funciona perfecto muchas gracias!
@asadullah7324
@asadullah7324 Жыл бұрын
exactly I need. thank you
@danielhiebeler1614
@danielhiebeler1614 Жыл бұрын
You are a hero!!
@ivansmiths
@ivansmiths Жыл бұрын
Thank you!!
@EdoardoGronda
@EdoardoGronda Күн бұрын
Dumb question from someone who just started programming, why aren't you using tailwind-css and useGSAP()? Anyways, great tutorial, thank you so much!
@philmour3465
@philmour3465 Жыл бұрын
amazing, you saved me
@ivansmiths
@ivansmiths Жыл бұрын
You're welcome 😎
@maximberest5704
@maximberest5704 3 ай бұрын
thanks!
@omarjab
@omarjab Жыл бұрын
13:30 in quel momento ho capito che eri italiano ahaha comunque davvero ben tutorial, grazie, mi è stato molto utile
@ivansmiths
@ivansmiths Жыл бұрын
Colto in fragrante :) Grazie per aver visto il video!
@omarjab
@omarjab Жыл бұрын
@@ivansmiths eh si eh ahaha ho anche dato un occhio al tuo portfolio, molto bello :) comunque non vedo l'ora di vedere i prossimi video su gsap e react. purtroppo ce ne sono pochi e la maggior parte sono datati oppure sono molto superficiali
@ivansmiths
@ivansmiths Жыл бұрын
@@omarjab Grazie ancora! Condivido a pieno quello che dici. Settimana prossima se faccio in tempo dovrebbe uscire un tutorial su come fare degli "image reveal effect" :)
@insanethorgaming7664
@insanethorgaming7664 10 ай бұрын
Thank you sooooooooo much buddy
@ayush1344
@ayush1344 11 ай бұрын
Thank you Brother,
@FransGamingLow
@FransGamingLow Жыл бұрын
Thank you very much
@miraj.
@miraj. Жыл бұрын
A BIIIIGGGGG Thank You 🙏 for this
@ivansmiths
@ivansmiths Жыл бұрын
You're welcome 🙌
@studyafa7159
@studyafa7159 Жыл бұрын
What you have done after Initialising useEffect I dint understood a thing 😢😢
@SubzEye
@SubzEye 4 ай бұрын
Amazing Tutorial! I have one question, why did you choose 2000 as a value for end (end: "2000, top") ? How would I calculate this while designing my UI ?
@ivansmiths
@ivansmiths 3 ай бұрын
Hi! 2000 are the number of pixel that th eanimation will scroll until it finishes. However this code is actually pretty old and not very optimised for most case scenarios as you might have guessed. My portfolio is open source, there you can find a more polished version that calculate the width of the container
@odia-sanatani
@odia-sanatani Жыл бұрын
Thank you so much!
@cptankit4208
@cptankit4208 Жыл бұрын
Thnx man 🔥🫡
@CarlosEduardo42
@CarlosEduardo42 Жыл бұрын
This is great! Thank you! But why end is "2000 top"? Why 2000 pixels? I don't underestand that.
@ivansmiths
@ivansmiths Жыл бұрын
You're welcome :) just personal preference, you can set the pixel value based on how much fast/slow you want the animation to be
@CarlosEduardo42
@CarlosEduardo42 Жыл бұрын
@@ivansmiths Thank you again!
@jayasaikiran1761
@jayasaikiran1761 Жыл бұрын
Hey great tutorial, if possible make a video on while navigating to each page add a loader/page transition using Gsap in Nextjs 13
@ivansmiths
@ivansmiths Жыл бұрын
Thank you Jayasay! I'm planning a tutorial like this, but in the meanwhile you can check my website, it's open source. There's an animation on page change, maybe it can get you started
@yogeshmishra-t7r
@yogeshmishra-t7r Жыл бұрын
Will it work in react.js?
@TheProfessorMA
@TheProfessorMA Жыл бұрын
How to make Horizontal scroll and LocomotiveScroll using react ?
@ivansmiths
@ivansmiths Жыл бұрын
Hey! Unfortunately I've never tried LocomotiveScroll
@erzhan6121
@erzhan6121 Жыл бұрын
How to make this effect vertical
@ivansmiths
@ivansmiths Жыл бұрын
I think you just need to animate the y axis instead of the x axis
@owl_code
@owl_code Жыл бұрын
Hey How fix the error when changing route with next js?
@ivansmiths
@ivansmiths Жыл бұрын
For fixing this, wrap the whole JSX into a div, or another JSX element. It should work if you check the complete repository of this project
@XxbankerboomxX
@XxbankerboomxX Жыл бұрын
How could i pin every section that comes into view?
@ivansmiths
@ivansmiths Жыл бұрын
Dealing with multiple pins is a bit more tricky... If i remember correctly there should be an example in the official examples of ScrollTrigger. I've never tried multiple pins, sorry!
@XxbankerboomxX
@XxbankerboomxX Жыл бұрын
@@ivansmiths I figured it out and used a function in the refs of each section that added them to an array, then mapped that array and gave them all scrolltriggers with pins, for anyone else wondering :)
@ivansmiths
@ivansmiths Жыл бұрын
@@XxbankerboomxX Sound perfectly logical! Glad that you managed to get it working 😎
@XxbankerboomxX
@XxbankerboomxX Жыл бұрын
@@ivansmiths Btw i enjoyed your gsap videos, looking forward to watching more of them :)
@ivansmiths
@ivansmiths Жыл бұрын
@@XxbankerboomxX Thank you! I'll be also posting some new stuff soon :)
@InSaneRoGer112003
@InSaneRoGer112003 Жыл бұрын
over scrolling in mobile ??
@InSaneRoGer112003
@InSaneRoGer112003 Жыл бұрын
its not snapping to the top of section in mobile works fine in desktop what am i doing wrong?
@ivansmiths
@ivansmiths Жыл бұрын
What you mean by snapping? If you haven`t, you can check the complete GitHub repo of this project, the link is in the description. My example works on mobile, maybe you can find the solution there
@darveterdarveter4511
@darveterdarveter4511 Жыл бұрын
4:52 "ES7+ React/Redux/React-Native and blah-blah-blah" 😂
@Ghost-Stories710
@Ghost-Stories710 Жыл бұрын
Create more videos create GasP tutorial series
React Next.js Text Reveal with Gsap ScrollTrigger
3:44
IvanSmiths
Рет қаралды 11 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Award Winning Animation With Only 20 Lines Of CSS?
6:59
Hyperplexed
Рет қаралды 1,9 МЛН
NextJS Page Animation Transitions with GSAP
8:13
rithmic
Рет қаралды 31 М.
HTML Crashkurs - Der erste Schritt zur eigenen Webseite!
2:32:47
ScrollTrigger: Responsive Pin with Horizontal Scroll (GSAP)
7:15
Episode 45: Lead by Letting Go: Empowering Success and Failure
17:48
The Leading Lounge
Рет қаралды 169
EASY React Animation with useGSAP()
12:45
GSAP Learning
Рет қаралды 115 М.
Gemini 2.0 Pro
17:41
Prompt Engineering
Рет қаралды 34 М.
Build ANYTHING With AI Agents For FREE! (DeepSeek-R1 Beats ChatGPT)
21:43
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН