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...

Комментарии • 32

  • @iamrithmic
    @iamrithmic  3 месяца назад +1

    lol I had a cold when recording, anyway join the Discord server to show off what you made: discord.gg/TwUV34F6wC

  • @xam858
    @xam858 2 месяца назад +2

    damnnnnn first app router page transition tutorial im blessed

  • @Michael-Martell
    @Michael-Martell Месяц назад +3

    You should do a minor refactor to use the useGsap() hook provided by GSAP, to ensure that the animation unmounts cleanly.

  • @ispamtime2777
    @ispamtime2777 Месяц назад +2

    This channel is so under rated, nice work thank you.

  • @HenryBabbage
    @HenryBabbage 2 месяца назад +1

    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 :)

  • @shehabwaleed6447
    @shehabwaleed6447 3 месяца назад +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  3 месяца назад

      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

  • @StabilDEV
    @StabilDEV Месяц назад

    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.

  • @dikshantsinghadhikari5899
    @dikshantsinghadhikari5899 2 месяца назад

    Thank you so much for this, i wish i could thank you for million times i love you mate

  • @WALiD-ot8ik
    @WALiD-ot8ik Месяц назад

    Straight to the point , thank you dude. But u forgot cleanup things

  • @zeustechbr
    @zeustechbr 3 месяца назад +1

    Going to recommend you for my students thanks for sharing! pretty good content

    • @iamrithmic
      @iamrithmic  3 месяца назад

      Awesome! This is great to hear :)
      More to come

    • @zeustechbr
      @zeustechbr 3 месяца назад +1

      @@iamrithmic Will be tuned in!

  • @stylem8132
    @stylem8132 6 дней назад +1

    Thanks for the great content! Is it possible to use framer motion instead of gsap to achieve a similar effect while retaining SSR?

  • @kyleatienza3773
    @kyleatienza3773 2 месяца назад +2

    "long ass import statement" got me dying

  • @user-rh9wd7qx7o
    @user-rh9wd7qx7o 3 месяца назад +3

    Your a G ,man

  • @wchorski
    @wchorski 2 месяца назад +1

    have you messed around with the useGSAP hook or do you prefer the regular js implementation?

    • @iamrithmic
      @iamrithmic  2 месяца назад

      No I am going to though. Depending on how I find it, will try and do a video on it

  • @darkintaqt
    @darkintaqt 3 месяца назад +2

    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  3 месяца назад +3

      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

  • @dvizionfilmz
    @dvizionfilmz 2 месяца назад

    great tutorial. I think using useRef is preferable to direct DOM manipulation though

  • @CodeFull45
    @CodeFull45 3 месяца назад

    brother javascript next time plz>>>>

  • @effekt.design
    @effekt.design 3 месяца назад +4

    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  3 месяца назад +2

      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 3 месяца назад +2

      @@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  3 месяца назад +2

      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 :)