-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
712 additions
and
501 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
When Chrome introduced the (same-document) View Transition API, the Astro project was an early adopter and [astro-vtbot](https://github.com/martrapp/astro-vtbot), *the Bag of Tricks for Astro's View Transitions*, provided many technical demos, reusable components and a wealth of information about View Transitions. | ||
# The Inspection Chamber | ||
|
||
# @vtbag/* | ||
The Test Chamber is your ultimate playground for experimenting with the View Transition API. Whether you're working with same-document or cross-document transitions, this test bench has got you covered. | ||
|
||
Now that the View Transition API is finding its way into more and more browsers and even cross-document navigation is supported, `vtbot` got a **framework-independent** sister: | ||
With a comprehensive set of controls at your fingertips, you can interactively test and fine-tune your view transitions to perfection. Dive in and explore all the features the Test Chamber offers to elevate your web development projects! | ||
|
||
`@vtbag/*` will offer useful tools, tips *(and of course tricks!)* to support the use of View Transitions no matter what framework you use, if any. | ||
# @vtbag | ||
|
||
The Inspection Chamber is the inaugural tool under the @vtbag umbrella. If the name reminds you of vtbot, that's no coincidence. | ||
|
||
When Chrome introduced the (same-document) View Transition API, Astro quickly became an early adopter, offering a client-side router to transform MPAs into smooth SPAs. As a community-driven project, [astro-vtbot](https://events-3bg.pages.dev), the *Bag of Tricks for Astro's View Transitions*, delivered numerous technical demos, reusable components, and a wealth of information about View Transitions within Astro and the View Transition API at large. | ||
|
||
With the View Transition API now being adopted by more browsers and even supporting cross-document navigation, vtbot has evolved. Meet its framework-independent sibling: `@vtbag` | ||
|
||
`@vtbag/*` is set to provide a treasure trove of useful tools, tips (and of course tricks!) to enhance your experience with View Transitions, no matter which framework you're using, or even if you're using none at all. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
#! /bin/sh | ||
|
||
rm src/bench.ts | ||
if [ "$1" = "dev" ]; then | ||
OPTS="--sourcemap --watch" | ||
ln -s bench-dev.ts src/bench.ts | ||
else | ||
(cd lib && rm *.js.map) | ||
ln -s bench-prod.ts src/bench.ts | ||
OPTS="--minify" | ||
if [ "$1" = "full" ]; then | ||
rm -f src/bench.txt | ||
(cd ../astro-vtbot-website && npm run build) | ||
cp ../astro-vtbot-website/dist/vtbag/bench/index.html src/bench.txt | ||
fi | ||
(cd lib && rm *.js.map) >> /dev/null 2>&1 | ||
fi | ||
npx esbuild src/index.ts --bundle $OPTS --target=ESnext --outfile=lib/index.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
bench.txt |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters