From 04efd83668ac2212428b707406dbcb6566ec6326 Mon Sep 17 00:00:00 2001 From: Martin Trapp <94928215+martrapp@users.noreply.github.com> Date: Fri, 16 Aug 2024 07:27:01 +0200 Subject: [PATCH] guard against non supported view transition API --- .changeset/eleven-camels-fail.md | 5 +++++ devToolbar/app.ts | 14 +++++++++----- integration/astro-inspection-chamber.js.ts | 14 +++++++------- 3 files changed, 21 insertions(+), 12 deletions(-) create mode 100644 .changeset/eleven-camels-fail.md diff --git a/.changeset/eleven-camels-fail.md b/.changeset/eleven-camels-fail.md new file mode 100644 index 0000000..510712f --- /dev/null +++ b/.changeset/eleven-camels-fail.md @@ -0,0 +1,5 @@ +--- +'astro-vtbot': patch +--- + +Put the chamber out of order for browsers without native support for the view transition API diff --git a/devToolbar/app.ts b/devToolbar/app.ts index c3ca288..509959e 100644 --- a/devToolbar/app.ts +++ b/devToolbar/app.ts @@ -29,7 +29,7 @@ export default defineToolbarApp({

!!! New !!! The Inspection Chamber

reopen the inspection chamber + src=${imgSrc.src} alt="Reopen the Inspection Chamber" />

Examine every detail of your view transitions! Put them through their paces! Step through frames and discover how the elements morph.


The Bag is coolI love the Bag of Tricks!