This Magnetic Nav Link Animation Is Sick!! | Nextjs 14, Framer Motion Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ต.ค. 2024

ความคิดเห็น • 29

  • @developedbyed
    @developedbyed  8 หลายเดือนก่อน +35

    Like for more animation effects 👍

    • @isgjayden
      @isgjayden 8 หลายเดือนก่อน

      Ed I love you videos and projects!!! ❤❤❤ I need emotional support tho 😢😮

    • @BrutalInsights
      @BrutalInsights 8 หลายเดือนก่อน

      Great idea to continue amazing animation effects tutorials , like the subscribe button on youtube is so beautiful right :)

    • @mgriffes
      @mgriffes 7 หลายเดือนก่อน

      Thanks for this! And, hell yeah, a series on animation effects in nextjs / framer-motion / tailwindcss would be awesome. I say, "Go for it, my good man!"

  • @Logicmontana
    @Logicmontana 8 หลายเดือนก่อน +4

    00:02 Create magnetic navigation links that attract to the cursor
    02:13 Setting up multiple navigation links with animations
    04:16 Install Framer Motion and implement motion effects on links.
    06:38 Using Framer Motion to animate custom elements
    08:47 Brilliant offers visual and interactive lessons for learning on the go.
    10:59 Setting up separate animations for individual links in Nextjs 14 using Framer Motion.
    13:09 Configuring input and output bounds for the animation
    15:29 Implementing pointer events for smooth animation
    17:30 Creating dynamic motion effects for active links.
    19:32 Applying Z-index and position relative for motion effect
    21:46 Creating cool effects in Next.js
    Crafted by logic montana.

  • @lalasmith2137
    @lalasmith2137 8 หลายเดือนก่อน +1

    amazing animation, love all the small things you suggested and then continued to show us how you can do it. definitely would love more next js cool animations from you. i learn so much and having fun in the process. Thank you

  •  8 หลายเดือนก่อน +5

    A quick note as well, since you are using hooks inside the link map what you are essentially doing is recreating a component for every render. Which is usually fine, if the list is not dynamic, but I'm suspecting that the hooks will be called out of order if the list changes, which could cause weird side effects. You could fix it by moving the map function out of the component, as a separate component, and then just render that component in the map with a key. I could be wrong though, could be something special about the motion hooks that allow them to be called like that.

    • @rand0mtv660
      @rand0mtv660 8 หลายเดือนก่อน

      I think you are not correct in some parts of your comment. As you mentioned, map creates new components and hooks are basically "component scoped". These hooks will not be called out of order because each list item is its own component. Even if list item order changes, the hooks inside the component are still in their order and independent from order in the list. This confusion is why I always avoid using hooks inline like this and in case I need to use hooks in a list of items, I extract that list item into a separate component and then render that for each list item, as you mentioned you would do. That way it's clearer that it's a standalone component with its hooks and not just something that's inline in a loop that just looks weird and potentially wrong.
      Who knows, I might be wrong but I've seen people use other hooks inline like that without issues, but I always avoid it because it's too confusing.

  • @IsmaelAli-d2o
    @IsmaelAli-d2o 8 หลายเดือนก่อน

    After enrolling in all of your courses, I've had so much fun. I highly recommend them. Now, I'm eagerly looking forward to the upcoming one.

  • @ananunes1792
    @ananunes1792 8 หลายเดือนก่อน

    Omg, you definely need to create a series!! It would be awesome, thank you for work 💖

  • @deepanshusharma9311
    @deepanshusharma9311 8 หลายเดือนก่อน +3

    Sir you are the best coding teacher I have ever seen

  • @jay22o
    @jay22o 8 หลายเดือนก่อน

    My god, you wreck my head every time I watch your vids!!
    I am very new to web design & development and watching you make this vids, makes me think that I have soooo much more to learn! But honestly, thank you for all your content 👌👍😀

  •  8 หลายเดือนก่อน +2

    To auto-import after typing the component name - hit CMD/CTRL+period while your cursor is inside the word, and the auto-import suggestion list should pop up again.

  • @deliriumcode
    @deliriumcode 6 หลายเดือนก่อน

    You've got yourself a new subscriber. Thank you for videos like this!

  • @abdujabbarof
    @abdujabbarof 8 หลายเดือนก่อน +1

    Yes, it would be so useful course

  • @giannisnik5295
    @giannisnik5295 8 หลายเดือนก่อน +1

    Excellent work!!Thank You!

  • @王呢-z1f
    @王呢-z1f 6 หลายเดือนก่อน

    it's awsome, just like Dynamic Island.

  • @rockaldeano
    @rockaldeano 5 หลายเดือนก่อน

    thx very much for another awesome video @developedbyed For some reason the last part about animating the span element is not working for me

  • @TheBumbleCheese
    @TheBumbleCheese 8 หลายเดือนก่อน

    "How to magnetize cucumbers"-course confirmed

  • @tendulkarsuriya6278
    @tendulkarsuriya6278 3 หลายเดือนก่อน

    Hi souce code link not working help me out

  • @KahyaHasan
    @KahyaHasan 8 หลายเดือนก่อน

    Cool man

  • @Taras3D
    @Taras3D 8 หลายเดือนก่อน

    🔥🔥🔥

  • @cachipum
    @cachipum หลายเดือนก่อน

    Man... you hair! hahaha

  • @shafee-e
    @shafee-e 8 หลายเดือนก่อน

    hahaha sorry for jhey xD

  • @amorto3420
    @amorto3420 8 หลายเดือนก่อน

    What's the matter Ed? Am I not your gorgeous friend on the internet anymore?

  • @PerfumeBoxLotus
    @PerfumeBoxLotus 6 หลายเดือนก่อน

    where cn file :)) lmao

  • @veranikabarel
    @veranikabarel 8 หลายเดือนก่อน

    So cool