NextJS Page Animation Transitions with GSAP

  Рет қаралды 25,534

rithmic

rithmic

Күн бұрын

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...
👽 Discord - / discord
👾 GitHub: github.com/six...

Пікірлер: 40
@iamrithmic
@iamrithmic 7 ай бұрын
lol I had a cold when recording, anyway join the Discord server to show off what you made: discord.gg/TwUV34F6wC
@nedyking6389
@nedyking6389 Ай бұрын
I'm sorry to hear that and I'd like to ask you a question, if the animation is triggered independently by gsap, is it possible to simply add that functionality to the layout.tsx and not use the template.tsx?
@nedyking6389
@nedyking6389 Ай бұрын
Great tutorial by the way, easy to follow and most importantly to understand
@Michael-Martell
@Michael-Martell 6 ай бұрын
You should do a minor refactor to use the useGsap() hook provided by GSAP, to ensure that the animation unmounts cleanly.
@shehabwaleed6447
@shehabwaleed6447 7 ай бұрын
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
@iamrithmic
@iamrithmic 7 ай бұрын
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
@HenryBabbage
@HenryBabbage 7 ай бұрын
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 :)
@xam858
@xam858 6 ай бұрын
damnnnnn first app router page transition tutorial im blessed
@StabilDEV
@StabilDEV 5 ай бұрын
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.
@ispamtime2777
@ispamtime2777 5 ай бұрын
This channel is so under rated, nice work thank you.
@iamrithmic
@iamrithmic 5 ай бұрын
Much appreciated!
@laeioun
@laeioun Ай бұрын
big +rep to you, this tutorial saved my project the night before deadline
@WALiD-ot8ik
@WALiD-ot8ik 5 ай бұрын
Straight to the point , thank you dude. But u forgot cleanup things
@stylem8132
@stylem8132 4 ай бұрын
Thanks for the great content! Is it possible to use framer motion instead of gsap to achieve a similar effect while retaining SSR?
@zeustechbr
@zeustechbr 7 ай бұрын
Going to recommend you for my students thanks for sharing! pretty good content
@iamrithmic
@iamrithmic 7 ай бұрын
Awesome! This is great to hear :) More to come
@zeustechbr
@zeustechbr 7 ай бұрын
@@iamrithmic Will be tuned in!
@kyleatienza3773
@kyleatienza3773 6 ай бұрын
"long ass import statement" got me dying
@iamrithmic
@iamrithmic 6 ай бұрын
😂
@lawrenceborabo8935
@lawrenceborabo8935 6 ай бұрын
lol
@wchorski
@wchorski 7 ай бұрын
have you messed around with the useGSAP hook or do you prefer the regular js implementation?
@iamrithmic
@iamrithmic 7 ай бұрын
No I am going to though. Depending on how I find it, will try and do a video on it
@SubhasishDas-r5o
@SubhasishDas-r5o Ай бұрын
Which vscode theme are you using?
@dikshantsinghadhikari5899
@dikshantsinghadhikari5899 7 ай бұрын
Thank you so much for this, i wish i could thank you for million times i love you mate
@aymenbachiri-yh2hd
@aymenbachiri-yh2hd 4 ай бұрын
Thank you so much
@BelalRezk-c1w
@BelalRezk-c1w 7 ай бұрын
Your a G ,man
@iamrithmic
@iamrithmic 7 ай бұрын
Haha thanks bro :)
@DhruvPansuriya05
@DhruvPansuriya05 3 ай бұрын
Awesome 🫡🫡🫡
@dvizionfilmz
@dvizionfilmz 6 ай бұрын
great tutorial. I think using useRef is preferable to direct DOM manipulation though
@seemol.chakroborti
@seemol.chakroborti 2 ай бұрын
It's look awesome
@effekt.design
@effekt.design 7 ай бұрын
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?
@iamrithmic
@iamrithmic 7 ай бұрын
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
@effekt.design
@effekt.design 7 ай бұрын
@@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
@iamrithmic
@iamrithmic 7 ай бұрын
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 :)
@darkintaqt
@darkintaqt 7 ай бұрын
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
@iamrithmic
@iamrithmic 7 ай бұрын
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
@CodeFull45
@CodeFull45 7 ай бұрын
brother javascript next time plz>>>>
@toblamabor7072
@toblamabor7072 4 ай бұрын
In animations.ts the "onComplete" makes the navigation very slow, instead "onStart" looks good too especially for user experience
Build a Side Navigation with TailwindCSS and Framer Motion
16:27
How To Add Page Transitions To NextJS 14 (including Exit Animations)
10:34
Não sabe esconder Comida
00:20
DUDU e CAROL
Рет қаралды 41 МЛН
This dad wins Halloween! 🎃💀
01:00
Justin Flom
Рет қаралды 15 МЛН
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 81 МЛН
Introducing ScrollTrigger for GSAP
21:43
GSAP Learning
Рет қаралды 265 М.
How to Add Page Transitions in NextJs 14
9:13
Hamed Bahram
Рет қаралды 56 М.
The Model View Controller MVC
44:01
FANATICUS
Рет қаралды 63
Award Winning Animation With Only 20 Lines Of CSS?
6:59
Hyperplexed
Рет қаралды 1,8 МЛН
Create a Blog with NextJS - In 10 Minutes
12:08
rithmic
Рет қаралды 4,8 М.
Creating Sick Page Transitions with Barba.js & GSAP
20:05
DesignCourse
Рет қаралды 136 М.
EASY React Animation with useGSAP()
12:45
GSAP Learning
Рет қаралды 100 М.
Top 10 Web Animation Trends of 2024
6:49
Olivier Larose
Рет қаралды 19 М.