--- title: "The Bag of Tricks for View Transitions" description: "Tools, Tips, and Tricks to Enhance your Dev Skills with the View Transition API!" template: splash hero: tagline: "Tools, Tips, and Tricks to Enhance your Dev Skills with the View Transition API!" image: file: ../../assets/bag.png alt: The vtbag logo actions: - text: Open the Bag link: /vtbag/ icon: right-arrow variant: primary - text: Sister Site for Astro's Client Router link: https://events-3bg.pages.dev icon: external variant: secondary head: - tag: meta attrs: name: robots content: "index, follow" - tag: link attrs: rel: "alternate" type: "application/rss+xml" title: "The Bag of Tricks for View Transitions" href: "https://vtbag.dev/rss.xml" - tag: meta attrs: property: "og:type" content: "website" - tag: script attrs: type: "application/ld+json" content: '{"@context": "https://schema.org", "@type": "WebSite", "name": "@vtbag", "url": "https://vtbag.dev/"}' - tag: meta attrs: name: "google-site-verification" content: "pNNfJDGodQYwIF2MdCDzJ8SfxCvWHbr9ygW34zRA8Wk" renderBlocking: legal --- import Bsky from "@/components/Bsky.astro"; import NoViewTransitions from "@/components/NoViewTransitions.astro"; import ReducedMotion from "@/components/ReducedMotion.astro"; import WebRing from "@/components/WebRing.astro"; import { CardGrid, Card } from "@astrojs/starlight/components"; import { Icon } from "@astrojs/starlight/components";

Spark up a discussion on the Bag's Discord or on 🦋 Bluesky! Hit the buttons to share your thoughts and please stay connected with The Bag and me for all the latest!

Everything you ever wanted to know about the View Transition API, in one place. Explore what your browser is capable of and what is new in the API specification. Dive into examples and see what holds the world of pseudo elements and their styling together at its core. As you dig deeper into View Transitions, you will quickly see how a little JavaScript here and there can unlock much more and make things even more fun. You do not have to build everything yourself. The Bag provides battle tested libraries and tools that make working with View Transitions easier, more enjoyable, and practical for real projects. A journey told in episodes, starting with simple use cases and moving toward more advanced applications. Along the way, it covers basic setup, image morphing, fixing broken text transitions, and extended same page examples. What would a bag of tricks be without a few tips and tricks along the way? Everything here comes straight from real world practice, built for real world use. I have stumbled through the rough edges, chased down the weird bugs, and made all the mistakes already, so you do not have to. Last but not least, it is all about "show, don't tell". New techniques are always easier to grasp when you can see them in action instead of just reading about them. The Tech Demos section at the end of the navigation links to all the examples, and there are, if I may say so with a bit of modesty, a few real gems in there.