Animating Vue Router Transitions in Vue 3

Поделиться
HTML-код
  • Опубликовано: 27 дек 2024
  • Vue Router transitions are a quick and easy way to add some flair to Vue app. They allow you to add smooth animations/transitions between different pages of your app. In this video, learn how to set up Vue Router in Vue 3 and add transitions using both custom classes and the Animate.css library.
    LINKS
    Companion Article w/ Code - learnvue.co/20...
    Vite Tutorial - • Creating Your First Vu...
    Animate.css - animate.style/
    FREE VUE 3 CHEATSHEET WITH ESSENTIAL CODE SNIPPETS
    learnvue.co/vu...
    follow me on twitter:
    / mattmaribojoc
    🚨 Like quick Vue lessons like these? Check out 800+ lessons over on Vue School - go.learnvue.co...

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

  • @christopheryeung9235
    @christopheryeung9235 3 года назад +13

    Seriously this is by far the most well articulated set of videos for vue

    • @LearnVue
      @LearnVue  3 года назад

      thank you so much! more content to come!

  • @burger-guy-99
    @burger-guy-99 2 месяца назад

    This is the best tut on actual vue transitions. Should be in the docs tbh

  • @shmert
    @shmert 3 года назад +19

    The pacing and content are both excellent. I'm new to Vue and couldn't find a basic example of installing/setting up vue-router with Vite. Thank you!

    • @LearnVue
      @LearnVue  3 года назад +1

      Thanks so much! Glad you enjoy it. What other topics are you interested in as someone new to Vue?

    • @shmert
      @shmert 3 года назад

      ​@@LearnVue Building a really solid best-practices form. Input-level and form-level validation messages and styling. Disabled inputs & buttons while submitting. Define reusable components so you don't need to duplicate this for every form.

    • @deangelolevi3854
      @deangelolevi3854 3 года назад

      Pro trick: watch movies at flixzone. Me and my gf have been using it for watching a lot of movies recently.

    • @ricardograyson5781
      @ricardograyson5781 3 года назад

      @Deangelo Levi Definitely, have been watching on flixzone for months myself :D

  • @lighty262
    @lighty262 3 года назад +5

    The way you deliver information is like a professional, very easy to understand for beginners like me, you deserve more subscribers.

    • @LearnVue
      @LearnVue  3 года назад

      thanks for watching! i'd love to know what you'd want to see next!

  • @bmmartin1684
    @bmmartin1684 2 года назад

    I have learnt more in this simple tutorial that I ever thought I would when I clicked on the video. Thanks mahn

    • @LearnVue
      @LearnVue  2 года назад

      That's always my goal :)

  • @qumbiaweb
    @qumbiaweb 3 года назад +1

    Wow. The only tutorial that worked flawlessly and was clearly understandable. Thanks.

  • @Nekoeye
    @Nekoeye 2 года назад

    Best tutorial for Vue 3 transitition I have watched so far. Thanks

  • @bowiemtl
    @bowiemtl Год назад

    I thought I had everything when I saw the newer transitions video but no he top's it off with the EXACT use case I had in mind! Haha this is great!

  • @RobertWildling
    @RobertWildling 2 года назад

    Wow! I know Vue and Vue-Router and have use all those concepts that the video explains. But I have NEVER EVER seen or read a better and more concise overview on this topic! Absolutely excellent! Thank you very much!

    • @LearnVue
      @LearnVue  2 года назад

      appreciate it tons!

  • @deweywsu
    @deweywsu Год назад +1

    Wow. What a cool video, and a great teacher. The concepts were built upon each other, done in real time, and at a smooth pace. A++++!

  • @MrRezaw
    @MrRezaw 9 месяцев назад

    It was great! please make more advanced courses for vue and nuxt❤

  • @piusijachi2763
    @piusijachi2763 2 года назад

    I'm new to vue(2days in) , thank for this

  • @abdianrizkyramadan1535
    @abdianrizkyramadan1535 3 года назад +1

    What just I need. Need more of this

    • @LearnVue
      @LearnVue  3 года назад

      glad to hear! thanks!

  • @SusanthCom
    @SusanthCom 3 года назад +2

    Detailed and clean explanation ❤️

  • @Antonio_Pivaldi
    @Antonio_Pivaldi Год назад

    Thank you. This video of yours helped a lot, really.

  • @gnjrale
    @gnjrale 2 года назад

    You are the best. Not only the latest version but also very good explanation and content!

  • @brianzhamilton
    @brianzhamilton 2 года назад

    Thank you! This is exactly what I’m looking for right now!

  • @xxwaldi
    @xxwaldi 2 года назад

    Your channel is amazing. Keep it up!!

  • @briannhb
    @briannhb 2 года назад

    thanks, this is so easy to understand!

  • @4otko999
    @4otko999 Год назад

    amazing video by the way

  • @farnaamsamadi5386
    @farnaamsamadi5386 3 года назад +2

    Thank you Sir. Please keep going

    • @LearnVue
      @LearnVue  3 года назад +3

      Thank you for the encouragment - I plan on making tons of video in the next few months so be ready!

  • @ryan_roga
    @ryan_roga 2 года назад

    Do you have a video to do the same effect using Nuxt 3?

  •  3 года назад +2

    Super awesome, thank you very much!

    • @LearnVue
      @LearnVue  3 года назад

      You're very welcome!

  • @justinvanderkwaak1901
    @justinvanderkwaak1901 2 года назад +1

    Very good explanation! I have a question that someone here is able to help me with. I have a menu with home in the middle, on the left agenda and on the right contact. When i'm on home and I click on agenda. Home slides to the right and agenda slides in from the left. But when I click on contact home slides right and contact comes in from the right. Is it possible to detect on which item you click and use a different transitions based on that choice. Thanks in advance!

  • @webxcryptoit7308
    @webxcryptoit7308 Год назад

    Bro, thank's for this besting content!

  • @ten8217
    @ten8217 3 года назад +5

    upon searching for diamonds. i found diamonds. ty for this.

    • @ransela6139
      @ransela6139 3 года назад

      well said my friend, very poetic and accurate

  • @twilighthunter8021
    @twilighthunter8021 Год назад

    5:28 the part about transitions starts here

  • @andrewkodkod
    @andrewkodkod 3 года назад +1

    Great tutorial, thanks 🙏

    • @LearnVue
      @LearnVue  3 года назад

      you’re welcome

  • @yudilokhande8915
    @yudilokhande8915 3 года назад +1

    Yet another amazing video. Also, sidenote... Is it possible to setup a discord server where we could give our suggestions for possible videos?

    • @LearnVue
      @LearnVue  3 года назад +2

      Thanks again! Right now, I think the best way to give suggestions is to email me over at matt@learnvue.co - hope to hear from you!

  • @cindrmon
    @cindrmon 2 года назад

    hoi! nice tutorial on vue router transitions! thanks for bringing high-quality vue tutorials both for vue2 and vue3! i actually have a suggestion.. since you're making a lot of vite + vue 3 content recently, can you make a video about vite-plugin-pages? it seems noteworthy because it feels more like nuxtjs when you have that setup on your vite project, worth a topic of your time. other than that, really awesome content! keep it up!

  • @nurjamil6381
    @nurjamil6381 4 месяца назад

    can someone please explain me how that absolute position fixed the last transition ? I dont have a clue

  • @genesdada7045
    @genesdada7045 2 года назад

    great voice! greate content! ..wow. Beautiful.

    • @LearnVue
      @LearnVue  2 года назад

      Thanks for watching!

  • @12mfon2002
    @12mfon2002 3 года назад +1

    nice tutorial!

  • @hamidk7294
    @hamidk7294 2 года назад

    Thank you 💙

  • @sharonlau3963
    @sharonlau3963 2 года назад

    Thanks for the great content. 🎈

  • @Acuce7ibd468j
    @Acuce7ibd468j Год назад

    What is the name of the Font used in the thumbnail

  • @i_am_a_real_cat1443
    @i_am_a_real_cat1443 7 месяцев назад

    Can someone explain me why i should use this technic instead of using /pages/ ???

  • @Amine-Ch-91
    @Amine-Ch-91 2 года назад

    Very helpful, thanks.

    • @LearnVue
      @LearnVue  2 года назад

      aye! glad it helped 💚

  • @creamCheese89
    @creamCheese89 11 месяцев назад

    wow no i have router transition, thank brother!

  • @camyrado7140
    @camyrado7140 3 года назад +1

    Awesome!

  • @asyncFlex
    @asyncFlex 2 года назад

    i cant find the github of this class

  • @LeagueOfAI711
    @LeagueOfAI711 2 года назад

    Hi ! Can I ask why this does not work anymore? everytime i type in mode="outIn" , my page just goes blank

  • @mawpaingthu4042
    @mawpaingthu4042 8 месяцев назад

    Thank you sir ..

  • @devops-sushi5534
    @devops-sushi5534 Год назад

    Strangly my transition only works "sometimes" alot of times my View just does not show up.... any idea why?
    ```

    Home |
    Login |
    Register |
    Events





    ```

    • @devops-sushi5534
      @devops-sushi5534 Год назад

      This is my router:
      ```
      const router = createRouter({
      history: createWebHistory(),
      routes: [
      {
      path: "/login",
      name: "login",
      component: () => import("@/views/LoginView.vue"),
      meta: {
      enterClass: 'animate__animated animate__fadeInLeft',
      leaveClass: 'animate__animated animate__fadeOutRight',
      }
      },
      {
      path: "/events",
      name: "events",
      component: () => import("@/views/EventsView.vue"),
      },
      {
      // the 404 route, when none of the above matches
      path: "/404",
      name: "error-404",
      component: () => import("@/views/error/ErrorPage404.vue"),
      },
      {
      path: "/:pathMatch(.*)*",
      redirect: "/404",
      },
      ],
      });
      ```

  • @GazX90
    @GazX90 Год назад

    it doesn't work for me

  • @ShCcAzad
    @ShCcAzad 2 года назад

    Boooooooom! 💥

  • @aliaaa3254
    @aliaaa3254 2 года назад

    it's veryy gooood

  • @lihan-j9k
    @lihan-j9k Год назад

    Wow!

  • @augischadiegils.5109
    @augischadiegils.5109 2 года назад

    ♥️♥️♥️♥️♥️

  • @Lily-um8pl
    @Lily-um8pl 2 года назад

    thank you open the CC subtitle for the poor English people with poor ear

  • @ukaszzbrozek6470
    @ukaszzbrozek6470 2 года назад

    With 3 routes adding a name of the class to meta wouldn't work.

    • @MotesTV
      @MotesTV 2 года назад

      Take a look a the article linked in the description under the section, "Dynamic Transitions Using v-bind"

  • @darkmift
    @darkmift 3 года назад +2

    I would recommend to drop the first half showing what router is and focusing on the the subject of the video title.

    • @ransela6139
      @ransela6139 3 года назад +5

      I disagree, there are too many half baked tutorials out there.. a good tutorial is complete imo.. and this is perfect. If you don't need the first bit skip over it.

  • @hichembouallegue
    @hichembouallegue 2 года назад

    😲

  • @zarchiver6887
    @zarchiver6887 2 года назад

    What I should to do to remove # from url? CreateWebHashHistory doesn’t work