No video

Spice Up Your Site With SvelteKit Page Transitions

Learn how to do page transitions in SvelteKit.
👉️ Support
▶️ KZread Membership
youtube.com/@joyofcodedev/join
🔴 Patreon
/ joyofcode
👉️ Links:
SvelteKit Page Transitions
🔗 joyofcode.xyz/sveltekit-page-transitions
Svelte Ease Visualiser
🔗 svelte.dev/examples/easing
👉️ Uses:
🔗 joyofcode.xyz/uses
👉️ Socials:
🐦️ / joyofcodedev
💬 / discord
🔖 Timestamps
0:00 Intro
0:20 SvelteKit Transitions
1:01 The Page Store
2:08 Key Block
3:56 Using The Load Function Inside Layout
6:28 Custom Transitions
11:53 Spicy Transitions
13:20 Transition Component
15:35 Types
17:15 Outro
#svelte #sveltekit #joyofcode

Пікірлер: 63

  • @JoyofCodeDev
    @JoyofCodeDev Жыл бұрын

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

  • @annismonadjem6901
    @annismonadjem6901 Жыл бұрын

    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

    Жыл бұрын

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

  • @justingolden21
    @justingolden21 Жыл бұрын

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

  • @oungseik
    @oungseik Жыл бұрын

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

  • @indie_rok
    @indie_rok Жыл бұрын

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

  • @JoyofCodeDev

    @JoyofCodeDev

    Жыл бұрын

    You're welcome! 😄

  • @vrx_ui
    @vrx_ui Жыл бұрын

    Always the relevant info needed! Thankyou

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

  • @rchrdnsh
    @rchrdnsh Жыл бұрын

    This literally saved my booty today, thank you!

  • @cmaxkratos
    @cmaxkratos Жыл бұрын

    Great content as always!

  • @jovanyvelezarango7195
    @jovanyvelezarango7195 Жыл бұрын

    Awesome. One more time thanks my friend

  • @thedelanyo
    @thedelanyo Жыл бұрын

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

  • @JoyofCodeDev

    @JoyofCodeDev

    Жыл бұрын

    Yeah! 😄

  • @marvf360
    @marvf360 Жыл бұрын

    that playFlush hahahahaha awesome!

  • @daleryanaldover6545
    @daleryanaldover6545 Жыл бұрын

    this channel of yours is really fun

  • @JoyofCodeDev

    @JoyofCodeDev

    Жыл бұрын

    Thank you! 😄

  • @tadeogonzalez9045
    @tadeogonzalez9045 Жыл бұрын

    awesome video!

  • @JoyofCodeDev

    @JoyofCodeDev

    Жыл бұрын

    Thank you! 😄

  • @MPQuads237
    @MPQuads237 Жыл бұрын

    This is really cool. Thanks.

  • @JoyofCodeDev

    @JoyofCodeDev

    Жыл бұрын

    You're welcome! 😄

  • @algo-wave
    @algo-wave Жыл бұрын

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

  • @JoyofCodeDev

    @JoyofCodeDev

    Жыл бұрын

    Great minds think alike.

  • @the-nasim
    @the-nasim Жыл бұрын

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

  • @good-dev-student
    @good-dev-student Жыл бұрын

    awesome any new video bro

  • @abiiranathan
    @abiiranathan Жыл бұрын

    you earned a sub

  • @JoyofCodeDev

    @JoyofCodeDev

    Жыл бұрын

    Thanks! 😄

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

  • @TechBuddy_
    @TechBuddy_ Жыл бұрын

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

  • @EasyViber
    @EasyViber Жыл бұрын

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

  • @JoyofCodeDev

    @JoyofCodeDev

    Жыл бұрын

    propuštaš 😂

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

  • @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: kzread.info/dash/bejne/ZYagpMiOgabPcbQ.html.

  • @marlonmarcello

    @marlonmarcello

    Жыл бұрын

    Thank you!!!!

  • @SheeceGardazi
    @SheeceGardazi Жыл бұрын

    GG

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

  • @292eur
    @292eur11 ай бұрын

    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

    11 ай бұрын

    That's weird. If you want make a reproduction and ask your question on 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/.

  • @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 !

  • @jhonyortiz5
    @jhonyortiz5 Жыл бұрын

    Would this only work with client side rendered pages?

  • @JoyofCodeDev

    @JoyofCodeDev

    Жыл бұрын

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

  • @jhonyortiz5

    @jhonyortiz5

    Жыл бұрын

    @@JoyofCodeDev I see. Thanks:)

  • @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

    Жыл бұрын

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

  • @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
    @morespinach983211 ай бұрын

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

  • @JoyofCodeDev

    @JoyofCodeDev

    11 ай бұрын

    Did you read the title? 😆

  • @morespinach9832

    @morespinach9832

    11 ай бұрын

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

    11 ай бұрын

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