Тёмный

Spice Up Your Site With SvelteKit Page Transitions 

Joy of Code
Подписаться 31 тыс.
Просмотров 20 тыс.
50% 1

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 65   
@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.
@arturlinnik2128
@arturlinnik2128 Месяц назад
THANKS! That `overflow: hidden` was driving me crazy
@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! 😄
@oungseik
@oungseik Год назад
Thanks a lot sir. Your video simplify the thing I struggle for many months.
@vrx_ui
@vrx_ui Год назад
Always the relevant info needed! Thankyou
@rchrdnsh
@rchrdnsh Год назад
This literally saved my booty today, thank you!
@justingolden21
@justingolden21 Год назад
This is AWESOME. Was just wondering about this and also just found your channel yesterday!
@marvf360
@marvf360 Год назад
that playFlush hahahahaha awesome!
@daleryanaldover6545
@daleryanaldover6545 Год назад
this channel of yours is really fun
@JoyofCodeDev
@JoyofCodeDev Год назад
Thank you! 😄
@thedelanyo
@thedelanyo Год назад
These cool and advance transition effects are great for game effects 😊😊😊
@JoyofCodeDev
@JoyofCodeDev Год назад
Yeah! 😄
@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.
@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.
@cmaxkratos
@cmaxkratos Год назад
Great content as always!
@the-nasim
@the-nasim Год назад
Playing Flush sound, Matia: How awesome is this😅. Anyway great tutorials
@jovanyvelezarango7195
@jovanyvelezarango7195 Год назад
Awesome. One more time thanks my friend
@tadeogonzalez9045
@tadeogonzalez9045 Год назад
awesome video!
@JoyofCodeDev
@JoyofCodeDev Год назад
Thank you! 😄
@MPQuads237
@MPQuads237 Год назад
This is really cool. Thanks.
@JoyofCodeDev
@JoyofCodeDev Год назад
You're welcome! 😄
@TechBuddy_
@TechBuddy_ Год назад
Put the cursor on an identifier ( variable or function or an object property ) to rename something in vscode
@abiiranathan
@abiiranathan Год назад
you earned a sub
@JoyofCodeDev
@JoyofCodeDev Год назад
Thanks! 😄
@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.
@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.
@EasyViber
@EasyViber Год назад
baš sam planirao dodati tranzicije na jednom projektu, možda jedino bez zvuka 😊
@JoyofCodeDev
@JoyofCodeDev Год назад
propuštaš 😂
@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: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-3RlBfUQCiAQ.html.
@marlonmarcello
@marlonmarcello Год назад
Thank you!!!!
@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
@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 !
@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 Год назад
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.
@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 Год назад
@@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.
Далее
Impossible FLIP Layout Animations With Svelte And GSAP
22:55
Немного заблудился 😂
00:16
Просмотров 229 тыс.
Svelte 5 Surprised Me
6:06
Просмотров 67 тыс.
Using The Svelte Context API With Stores
10:17
Просмотров 13 тыс.
Svelte now has magic
7:38
Просмотров 3,4 тыс.
10 CSS PRO Tips and Tricks you NEED to know
9:00
Просмотров 54 тыс.
SvelteKit is my mistress
4:19
Просмотров 424 тыс.
One Line Of Code By Master CSS
5:45
Просмотров 104 тыс.
Svelte Action Examples: use:viewport
13:15
Просмотров 5 тыс.