No video

Next.js Horizontal Scroll With Gsap ScrollTrigger

  Рет қаралды 22,300

IvanSmiths

IvanSmiths

Күн бұрын

In this tutorial I show how you can code an horizontal scrolling section using Next.js with Gsap ScrollTrigger plugin.
Note that the code is almost identical if you use plain React.js. For that you just need to import ScrollTrigger from "gsap/ScrollTrigger"
▬▬▬▬▬▬ USEFUL LINKS ▬▬▬▬▬▬
Complete GitHub repo:
github.com/IvanSmiths/next-gs...
Gumroad:
ivansmiths.gumroad.com/l/next...
Copyright free track used for this video:
www.freelofi.com/lofi-yellow/
▬▬▬▬▬▬ WHERE TO FIND ME ▬▬▬▬▬▬
Let`s talk on Twitter!:
/ ivansmiths
My personal portfolio:
www.ivansmiths.com/
I am thrilled by the possibility of having you as a connection on LinkedIn.:
/ ivan-fabbri
▬▬▬▬▬▬ TIMESTAMPS ▬▬▬▬▬▬
00:00 Horizontal scroll demonstration
00:17 Setup next.js project
02:00 Build Hero component
04:25 Build horizontal scroll animation
12:51 Build Footer component

Пікірлер: 52
@cheeky1699
@cheeky1699 4 ай бұрын
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.
@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! 😎
@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!
@aflip8348
@aflip8348 6 ай бұрын
straight forward, thanks, dude! keep up the good work! 🚀
@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 :)
@redirex7770
@redirex7770 4 ай бұрын
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 😎
@asadullah7324
@asadullah7324 9 ай бұрын
exactly I need. thank you
@insanethorgaming7664
@insanethorgaming7664 4 ай бұрын
Thank you sooooooooo much buddy
@santinomantineo5275
@santinomantineo5275 4 ай бұрын
Que crack, buenisimo el tutorial, super simple y funciona perfecto muchas gracias!
@FransGamingLow
@FransGamingLow 10 ай бұрын
Thank you very much
@odia-sanatani
@odia-sanatani Жыл бұрын
Thank you so much!
@danielhiebeler1614
@danielhiebeler1614 Жыл бұрын
You are a hero!!
@ivansmiths
@ivansmiths Жыл бұрын
Thank you!!
@ayush1344
@ayush1344 5 ай бұрын
Thank you Brother,
@cptankit4208
@cptankit4208 10 ай бұрын
Thnx man 🔥🫡
@philmour3465
@philmour3465 10 ай бұрын
amazing, you saved me
@ivansmiths
@ivansmiths 10 ай бұрын
You're welcome 😎
@miraj.
@miraj. Жыл бұрын
A BIIIIGGGGG Thank You 🙏 for this
@ivansmiths
@ivansmiths Жыл бұрын
You're welcome 🙌
@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" :)
@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
@studyafa7159
@studyafa7159 9 ай бұрын
What you have done after Initialising useEffect I dint understood a thing 😢😢
@user-tv9qb9co2o
@user-tv9qb9co2o 7 ай бұрын
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
@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
@CarlosEduardo42
@CarlosEduardo42 9 ай бұрын
This is great! Thank you! But why end is "2000 top"? Why 2000 pixels? I don't underestand that.
@ivansmiths
@ivansmiths 9 ай бұрын
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 9 ай бұрын
@@ivansmiths Thank you again!
@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
@darveterdarveter4511
@darveterdarveter4511 8 ай бұрын
4:52 "ES7+ React/Redux/React-Native and blah-blah-blah" 😂
@Ghost-Stories710
@Ghost-Stories710 11 ай бұрын
Create more videos create GasP tutorial series
@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
Introducing ScrollTrigger for GSAP
21:43
GreenSockLearning
Рет қаралды 256 М.
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 61 МЛН
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 28 МЛН
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 93 МЛН
The Story of Next.js
12:13
uidotdev
Рет қаралды 560 М.
Create a Website Intro with ReactJS + GSAP in 10 Minutes
11:00
These CSS PRO Tips & Tricks Will Blow Your Mind!
8:48
Coding2GO
Рет қаралды 184 М.
React VS Svelte...10 Examples
8:35
Beyond Fireship
Рет қаралды 541 М.
How To Debug React Apps Like A Senior Developer
21:07
Web Dev Simplified
Рет қаралды 105 М.
NextJS Page Animation Transitions with GSAP
8:13
rithmic
Рет қаралды 19 М.
ScrollTrigger: Responsive Pin with Horizontal Scroll (GSAP)
7:15
I found more incredible 3D personal portfolios!!!
19:12
Developer Filip
Рет қаралды 171 М.
Scroll Trigger Tutorial - 8 - Using Scroll Trigger with React
9:54
The Code Creative
Рет қаралды 40 М.