No, its not a roBOT, its a Bag of Tricks!
A current deployment of tech demos and the documentation can be found at https://events-3bg.pages.dev/
Bag of Tricks for Astro's View Transitions
The bag of tricks provides support around Astro's view transitions.
Some of the contents are technical demos, some are useful tools, and some are reusable components that you can use in your own project to handle edge cases that go beyond Astro's standard features.
Tech Demos
The bag of tricks currently contains several technical demos that show examples of the implementation of various effects using the view transition events.
The sources are in the example
folder.
Reusable Components
For functionality and usage see the documentation.
Feature Enhancements
In this release
<ReplacementSwap />
: An alterantive DOM swap(), which preserves elements in the original DOM to avoid reinitialization of iframes or CSS animations.
Ideas for upcomming components
- A component that identifies and activates the current link in a persistent navigation bar
- A component that preloads images used in view transitions (including load indicator)
Development support
In this release
Todo list
- find & fix bugs
- provide additional components and demos
1.1.0 - 2023-12-22
Minor Changes
- The
<Linter/>
component is out! You will receive meaningful warning and error messages if you configure the transition attributes incorrectly! - The
<VtDebug/>
component got even better: Now also reports the transition groups that participate in a view transition! - Improved documentation for the
<ReplacementSwap>/
component! - New "Winter demo" that shows how different transiton groups participate in a view transition. Plus integration of custom animations right before and after the navigation start.
Plus: more tests, extended documentation, many code refactorings, elimination of <xmp>
tags, and dependency updates.