NextJS Page Animation Transitions with GSAP
HTML-код
- Опубликовано: 6 мар 2024
- How to quickly get animation transitions working with NextJS and GSAP.
Follow me on Twitter: / rithmio
👨💻 Looking for a web developer job, visit: www.webdevjobs.io/
👽 Discord - / discord
👾 GitHub: github.com/sixfwa/nextjs-gsap...
lol I had a cold when recording, anyway join the Discord server to show off what you made: discord.gg/TwUV34F6wC
damnnnnn first app router page transition tutorial im blessed
You should do a minor refactor to use the useGsap() hook provided by GSAP, to ensure that the animation unmounts cleanly.
This channel is so under rated, nice work thank you.
Much appreciated!
Thanks for making this; was about to investigate app router page transitions, so this came at the perfect time. Would gladly see more gsap + next.js app router vids :)
I have been searching for a proper tutorial especially with the app router and I can tell you I have found nothing, from the bottom of my heart thank you so much for it you have no idea how you saved me haha, ps the discord invitation link isn’t working for me
You are more than welcome and thanks for such a nice comment!
Uhh Discord links always feel so flimsy. If not you can try the DIscord link in my bio
Great tutorial, very clean! Thank you! For more semantic html I'd suggest to use an anchor tag instead of a for the (with e.preventDefeault()) which would also add progressive enhancement at no cost. And put the outside the tag and probably wrap the nav links in an too.
Thank you so much for this, i wish i could thank you for million times i love you mate
Straight to the point , thank you dude. But u forgot cleanup things
Going to recommend you for my students thanks for sharing! pretty good content
Awesome! This is great to hear :)
More to come
@@iamrithmic Will be tuned in!
Thanks for the great content! Is it possible to use framer motion instead of gsap to achieve a similar effect while retaining SSR?
"long ass import statement" got me dying
😂
lol
Your a G ,man
Haha thanks bro :)
have you messed around with the useGSAP hook or do you prefer the regular js implementation?
No I am going to though. Depending on how I find it, will try and do a video on it
While the animation itself and the impmentation is good, I would personally hate using it. It makes the time you need to navigate the page a lot longer which, in my opinion, ruins the user experience
I would be surprised to see this on most websites. However can be a good way for portfolios to stand out or those sites where branding is built into the website
great tutorial. I think using useRef is preferable to direct DOM manipulation though
brother javascript next time plz>>>>
Hey brother, thanks for what you put out to the community 🤝 appreciate you.
A quick question, Since we now use the “Transition link” to push between routers, We can no longer use the Next Link with this method right?
Hey bro, thanks for the comment, it means a lot! And yes unfortunately that would be the case. Maybe there is a way to incorporate it, Im not sure
@@iamrithmic i have been searching for page transitions with Next14 App router, this is the first tutorial that seems to solve it in an elegant manner and scalable manner.
We can also have different transitions based on current href and the href we moving to, i will play around with it and see if there is anyway to incorporate Next link with this.
And If you have a discord channel, I’ll join and update you 🤝 thanks man
Yes exactly. The plan was to make this video so people can just expand on it. And yeah would be cool for you to join. There's a Discord link in the description :)