Spice Up Your Site With SvelteKit Page Transitions

Поділитися
Вставка
  • Опубліковано 7 вер 2024

КОМЕНТАРІ • 64

  • @JoyofCodeDev
    @JoyofCodeDev  Рік тому +1

    🔴 Patreon: www.patreon.com/joyofcode
    💬 Discord: joyofcode.xyz/invite

  • @annismonadjem6901
    @annismonadjem6901 Рік тому +16

    Matia, your videos are most appreciated! Not only you are training me to be a svelte developer, but you are also having me to appreciate the work of a plumber and a flush repair master - how awesome indeed, all in one video!
    I love your amazing sense of humor.

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому +6

      I'm glad Rich Harris devoted his life to Svelte to culminate in toilet humor.

  • @indie_rok
    @indie_rok Рік тому +4

    Really awesome! I had the hardest time with janky page transitions... you just solved it haha
    Love you content so much. Thanks!

  • @oungseik
    @oungseik Рік тому

    Thanks a lot sir. Your video simplify the thing I struggle for many months.

  • @algo-wave
    @algo-wave Рік тому +2

    Lmao, I recently made a toilet related app where I use the flush sound as well. Nice vid 👍

  • @OneBrighDay
    @OneBrighDay Рік тому

    Thank you very much. I think I will put all my transitions/animations in a separate js file and then import them in. Just for ease of use across an application.

  • @justingolden21
    @justingolden21 Рік тому

    This is AWESOME. Was just wondering about this and also just found your channel yesterday!

  • @marvf360
    @marvf360 Рік тому

    that playFlush hahahahaha awesome!

  • @rchrdnsh
    @rchrdnsh Рік тому

    This literally saved my booty today, thank you!

  • @vrx_ui
    @vrx_ui Рік тому +1

    Always the relevant info needed! Thankyou

  • @thedelanyo
    @thedelanyo Рік тому

    These cool and advance transition effects are great for game effects 😊😊😊

  • @the-nasim
    @the-nasim Рік тому

    Playing Flush sound, Matia: How awesome is this😅. Anyway great tutorials

  • @daleryanaldover6545
    @daleryanaldover6545 Рік тому

    this channel of yours is really fun

  • @TechBuddy_
    @TechBuddy_ Рік тому +1

    Put the cursor on an identifier ( variable or function or an object property ) to rename something in vscode

  • @jovanyvelezarango7195
    @jovanyvelezarango7195 Рік тому

    Awesome. One more time thanks my friend

  • @cmaxkratos
    @cmaxkratos Рік тому

    Great content as always!

  • @tadeogonzalez9045
    @tadeogonzalez9045 Рік тому +1

    awesome video!

  • @chrizzzly_hh
    @chrizzzly_hh Рік тому

    Great video! Keep it coming! Also, i loved your -snippet - how did you set it up?

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому

      You can use Easy Snippet in VS Code to make creating snippets easier.

  • @good-dev-student
    @good-dev-student Рік тому

    awesome any new video bro

  • @MPQuads237
    @MPQuads237 Рік тому

    This is really cool. Thanks.

  • @marlonmarcello
    @marlonmarcello Рік тому

    Hey Matia, thanks for the video. Any chance you could expand on that so that we can do page transition that are not on the whole block of content? Complex animations with stagger of elements, etc? That'd be much appreciate, thank you!!

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому

      I have an entire course on animating Svelte: ua-cam.com/video/3RlBfUQCiAQ/v-deo.html.

    • @marlonmarcello
      @marlonmarcello Рік тому

      Thank you!!!!

  • @292eur
    @292eur Рік тому

    Thank you for this! I only have a problem when I click on a link, it jumps to the top of the page and then goes to the clicked page. Any idea how to fix this?

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому

      That's weird. If you want make a reproduction and ask your question on Discord.

  • @good-dev-student
    @good-dev-student Рік тому

    i think there are a bug why the translation in the main page not working ?
    scenario enter to /login for example the navigate to / (main page animation will not work !

  • @davidjesus8629
    @davidjesus8629 Рік тому

    Great video!. Just wondering what would be the difference if you used directly the $page.url.pathname and added the duration and delay to the transition object

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому

      The store gets updated late which causes an overlap. You could use `$navigating` instead but if you're on a slower connection it's going to cause the page transition to play again before the page loads.

  • @EasyViber
    @EasyViber Рік тому

    baš sam planirao dodati tranzicije na jednom projektu, možda jedino bez zvuka 😊

  • @WyzrdCat
    @WyzrdCat Рік тому

    Makes a scroll bar appear and pushes my footer down because the new div appears right away even though it's at opacity 0 for the delay time. :/

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому +1

      You can use CSS Grid to stack the elements on top of each other.

  • @abiiranathan
    @abiiranathan Рік тому

    you earned a sub

  • @maelacier6138
    @maelacier6138 Рік тому

    Great tutorial !
    However, I can't get it to work with nested layouts (layout in a layout). The content instantly updates in the second layout :/
    Any help appreciated !

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому

      If you need help make a reproduction and you can get help on the Discord.

  • @bmehder
    @bmehder Рік тому

    Again, I have to ask, how are you able to have dark mode in the Svelte REPL? You don't know how badly I need this in my life.

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому

      I already replied but I use darkreader.org/.

  • @jhonyortiz5
    @jhonyortiz5 Рік тому +1

    Would this only work with client side rendered pages?

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому +1

      I would think so because transitions are just Svelte actions which don't run on the server.

    • @jhonyortiz5
      @jhonyortiz5 Рік тому

      @@JoyofCodeDev I see. Thanks:)

  • @SheeceGardazi
    @SheeceGardazi Рік тому

    GG

  • @maziasty
    @maziasty Рік тому

    So no way of making a transition in which both pages are visible at the same time?

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому

      What are you trying to do?

    • @maziasty
      @maziasty Рік тому

      @@JoyofCodeDev let's say flyin a new page while the previous page is still flyingout. Or like you'd rotate a cube so that both sides are visible until the end of rotation.

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому

      @@maziasty I mean if you look at the transition they are on the page at the same time if you don't use a delay.

  • @nil______
    @nil______ Рік тому

    oh now. flush didn't work. something came back XD

  • @morespinach9832
    @morespinach9832 Рік тому

    Might be nice to show the demo first of what we are going to be doing…

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому

      Did you read the title? 😆

    • @morespinach9832
      @morespinach9832 Рік тому

      @@JoyofCodeDev yes. I mean a good tutorial would start with a visual demo of how the final thing works. Then start the coding etc.

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому +1

      @@morespinach9832 I'm going to keep that in mind.

  • @TheJinxer000
    @TheJinxer000 Рік тому

    my approach for page transition in PageTransition.svelte is using
    " import { navigating } from '$app/stores'; "
    instead of using
    " load({ url }) "
    in +layout.svelte
    and using that " navigating " as a store like this
    {#key $navigating}
    {#if !$navigating}



    {/if}
    {/key}
    it working good too and nothing you need to coding on +layout.svelte.
    BTW I don't is my method to approach a page transition have any downside or not.

    • @JoyofCodeDev
      @JoyofCodeDev  Рік тому

      I always find weird issues when using a store for page transitions but if it works for you I don't see why not.