Martin Trapp

Martin Trapp

@martr.app

Maintainer at @astro.build 🚀 Maker of 👜 Bags of Tricks ✨for view transitions @vtbag.dev

494 followers158 following392 posts

Pinned

Been lucky to benefit a lot from open source in my career. Since mid-2023, I've been giving back! As an Astro maintainer, I’ve focused on the client-side router, and I’m always ready to help with view transitions on Astro's Discord.

Martin Trapp reposted

This is huge for MPAs. Once these features are Baseline, they’ll make a hell of a difference. The initial proposal is open for feedback, so don’t miss your chance to influence where it goes next.

Bramus@bram.us

One of the things that we at Chrome have been thinking about is a way to do declarative route and navigation matching **in CSS**. Together with @nomster.bsky.social and @dbaron.org I’ve been working on it for the past few months, and next week we’ll be presenting our work at the CSSWG F2F meeting.

Many thanks, @pablolarah.bsky.social, for the kind shout out and for sharing vtbag.dev with your followers. Your support means a lot and helps more developers discover these View Transition resources. It is greatly appreciated!

Pablo Lara H.@pablolarah.bsky.social

💼 The Bag of Tricks for View Transitions by @vtbag.dev Tools, Tips, and Tricks to Enhance your Dev Skills with the View Transition API! #ViewTransitions #webdev #css vtbag.dev

🏔️🌲🦇🪵🍄🦉🐻🐾⛺🏕️🦌🦊🐰Come on now, surely there are more cracking examples of View Transitions out in the wild! 👀

Louis Chenais@lucho.cool

Do you have examples of view-transitions found in the wild? I'm looking for examples to share to designers I work with. Thanks in advance 🫶

As an alternative to mapping routes and matching paths, you can define the view transition type directly where it happens: on the link. I adapted the Chrome DevRel demo to use @vtbag/turn-signal/link-types 👨‍🔧 Same result, just a different way of thinking about it. vtbag.dev/navigation-t...

vtbag.devLink Types Demo - vtbag.devThe shiny Google Navigation Types Demo from the View Transition Toolkit, but now with @vtbag/turn-signal/link-types
Bramus@bram.us

Here's that directional View Transitions demo we talked about over lunch, @twnsnd.com chrome.dev/view-transit... The toolkit automatically injects from-<name> and to-<name> View Transition Types based on navigation origin and destination. The routes are defined in a routemap.

As always, the Bag's got you covered: vtbag.dev/basics/pseud...

vtbag.devView Transition Names and Generated Pseudo-ElementsWhat are those pseudo-elements of the View Transition API and how can I style and animate them?
Sunkanmi Fafowora@sunkanmifafowora.bsky.social

Fact! And I got to learn and write on ::view-transition-group-children the other day alongside view-transition-group CSS property coming soon. Brandi has really done a lot on View Transitions and I am grateful for his work. Thank you for your early contribution to it. The web is a wonderful place

Little moment of joy today: Web Weekly #190 includes a reference to vtbag.dev! Seeing your own project pop up in a newsletter you genuinely enjoy reading is such a lovely surprise. Made my day. Vielen Dank! 😊

vtbag.devThe Bag of Tricks for View TransitionsTools, Tips, and Tricks to Enhance your Dev Skills with the View Transition API!
Stefan Judis@stefanjudis.com

Web Weekly 190 just went out! 🥂 This one covers `image-set` for backgrounds, Wakamai Fondue v1.0, `field-sizing` for textareas, selects and input fields, CSS quirks in the shadow DOM, and container style queries in Firefox Nightly. Read it online: https://webweekly.email/...

As a reply to an original post by @joyofcode.xyz that neatly shows the different stages of getting aspect ratio right in text-morphing view transitions, and to a brilliant article by @jakearchibald.com that explains it all in great depth with lots of fun.

Great result! Love seeing Astro + Svelte working so nicely together. As for the vtbag.dev part: it was actually the other way round: From @fubits.dev I learned that trick of not redefining swap(), but executing the swap directly in the astro:before-swap event listener.

Ilja@fubits.dev

The first @astro.build v6 + Svelte 5 website I’m happy to ship to production. Prelim. result of migrating a „historically grown“ content-heavy website (500+ routes). We tried to tackle to complexity by nesting & some shallow routing trickery I owe to @vtbag.dev. Really grateful for Server Islands 🙏

Martin Trapp reposted

Replying to @kevinpowell.co

It would be nice if sibling-index could enumerate the position of pseudo elements. There is not much use in indexing ::before and ::after but I would have plenty of use cases for ::view-transition-group(*), especially in combination with nested view transition groups or scoped view transitions.

Chapeau and h/t to you. 🎩👏✨ I hope you enjoy your well deserved time off! The lovely thing is that, despite the sadness that you will no longer be the guardian and champion of the Astro Docs, most the replies carry a sense of gratitude and fond memories.

Sarah Rainsberger@sarah11918.rainsberger.ca

And with that, so ends my last day w Astro Docs. So proud of the docs our community made, & honoured I had the chance to lead them. Open to new adventures in docs/community. If you liked learning, using, or contributing to Astro...maybe some of that was me! Maybe I can bring that to your project!

Martin Trapp reposted

If you like Adam's article, you might also want to have a look at vtbag.dev/vector-demo/ and fun-with-view-transitions.pages.dev/episode/7/page

vtbag.devThe Vector DemoA view transition tech demo were the old and new positions of morphing images control the trajectories.
Adam Argyle@nerdy.dev

how to make #CSS view transitions swoop or have motion blur or how I learned to help view transitions not always go in straight lines ⤷ nerdy.dev/swoop-there-...

Martin Trapp reposted

Sarah and Yan are both absolutely incredible people to have in your team and are a massive part of Astro's success. If you're looking to make your docs better, you'd be missing the opportunity of your life by not hiring them!

Sarah Rainsberger@sarah11918.rainsberger.ca

There are some great people, @yanthomas.dev included, looking for their next adventure! Oh hey, and me included, too! I'm not in a rush, but keeping my eye out for the right opportunity in docs or community leadership. If you've liked using or contributing to Astro, maybe part of that came from me!

(Element)-scoped view transitions are going to change the game once they hit baseline!

Bramus@bram.us

This CSS feature is part of the upcoming Element-Scoped View Transitions, which you can try out in Chrome Canary with the Experimental Web Platform Features flag flipped on. developer.chrome.com/blog/scoped-...

Martin Trapp reposted

Fuck you people. Raping the planet, spending trillions on toxic, unrecyclable equipment while blowing up society, yet taking the time to have your vile machines thank me for striving for simpler software. Just fuck you. Fuck you all. I can't remember the last time I was this angry.

It crashed often, but it was still a lot of fun back then. Just a handful of tags, no CSS, no scripts.

WebDesignMuseum@webdesignmuseum.org

Happy 35th Birthday WorldWideWeb – the first browser! On December 25, 1990, at CERN, a British physicist and internet pioneer Tim Berners-Lee created the world's first web browser, called WorldWideWeb. Try the browser emulator worldwideweb.cern.ch/browser/ #InternetHistory

Cool for many other things too, but especially cool for cross-document view transitions: finally you can tell front ⏩ from back ⏪! Honestly, trying to replace the default cross-fade with directional animations without the Navigation API is a bit like driving without turn signals.

Bramus@bram.us

This API is SOOOOOOO good … can't wait for it! 🤩 I'm using it on some demos over at view-transitions.chrome.dev. Get the details about this API at developer.chrome.com/docs/web-pla...

Cool for many other things too, but especially cool for cross-document view transitions: finally you can tell front ⏩ from back ⏪! Honestly, trying to replace the default cross-fade with directional animations without the Navigation API is a bit like driving without turn signals.

Bramus@bram.us

This API is SOOOOOOO good … can't wait for it! 🤩 I'm using it on some demos over at view-transitions.chrome.dev. Get the details about this API at developer.chrome.com/docs/web-pla...

They have no idea how nice it is that Astro, from the very first version of its client router, could automatically tell the difference between forward and backward navigation. Big shout-out to @fancypenguin.party, @natemoo.re, and @FredKSchott for gifting us view transitions in Astro 30 months ago!

A truly passionate article from someone who genuinely loves view transitions and knows exactly how to use them in a way that really supports the user experience, not just for the sake of the effect.

Vale@vale.rocks

View transitions are pretty neat, and I was fortunate enough to write a piece for @piccalil.li about putting them to work. They're such an exciting new part of the web platform, and I'm elated to see new and boundary-pushing effects making their way into production. #WebDev #ViewTransitions #CSS

Martin Trapp reposted

Replying to @paolo.ricciuti.me

For some mysterious reason, Google Search has decided to ignore vtbag.dev. Feel free to use any other search engine. Or simply add this to your system prompt: > If it has anything to do with view transitions, check vtbag.dev too!

When you scroll down on vtbag.dev, you can find a few view transition demos at the bottom of the navigation sidebar that work perfectly even in Firefox v144. Now guess which ones?

Martin Trapp reposted

Do you have any smaller/under-the-radar CSS sites/people that you follow? Looking for blogs, YouTube channels, or anyone who just shares cool CSS stuff. Reply if you know any, and look at the replies for new people/sites to follow 😊

Wow, hard to believe this was made over 2 years ago! Just tweak some CSS properties and let the browser figure out the transition. Why don’t we see animations like this on more websites by now?

Bramus@bram.us

Have you seen www.bram.us/2023/05/09/r...? Extend it with a MutationObserver (or StyleObserver) and you can have it auto-transition :)

Martin Trapp reposted

Replying to @stefanjudis.com

For everyone who cannot wait until native cross-document view transitions arrive: Your Astrojs sites with <ClientRouter> will already support view transitions for same-origin navigation in Firefox 144!