From e7e6276334a163e82cee4151115c979cc93bd401 Mon Sep 17 00:00:00 2001 From: Mikkel Svartveit Date: Mon, 30 Oct 2023 22:48:36 -0700 Subject: [PATCH] Add Tweet to article --- src/content/blog/astro-welcome.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/content/blog/astro-welcome.md b/src/content/blog/astro-welcome.md index 7e85ca4..1514e39 100644 --- a/src/content/blog/astro-welcome.md +++ b/src/content/blog/astro-welcome.md @@ -37,6 +37,10 @@ Another _really_ cool feature of Astro is the ability to use components from pre I utilized this feature for the navigation bar on the top of this site. It has a box shadow that shows and hides dynamically, and on mobile browsers it shows a menu button that expands a shelf of navigation links. Sure, I could have done this with vanilla JS, but I felt that using a Svelte component would be simpler and more maintainable. Besides, I already had this component ready from the old SvelteKit version of the website! I simply copied this file over, and it just worked right away, which was kind of a mind-blowing moment. +
+ +
+ ### View Transitions While the new View Transitions API is only supported in Chrome and other Chromium-based browsers for now, it is undeniably very cool. Astro utilizes this API in a really frictionless way. With just _one line_ of code, Astro will enable a 3KB large Javascript router that provides really sleek transitions between all your pages. And with a few more lines, you can achieve even more impressive transitions with elements persisting across pages. I’ve tried doing this on my photography page to medium success, yet the best demo I’ve seen for this is this [Spotify clone](https://spotify-astro-transitions.vercel.app) made by Igor M. Penaque. Go check it out!