Skip to content

Commit 3c8b9c9

Browse files
committed
Add link-types demo to Turn-Signal documentation
1 parent 34cfe90 commit 3c8b9c9

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

astro.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ function sidebar() {
223223
{
224224
label: "@vtbag",
225225
link: "/vtbag/",
226-
},
226+
},
227227
{
228228
label: "Basic Information",
229229
items: [
@@ -316,6 +316,7 @@ function sidebar() {
316316
{ label: "State Loss on Navigation", link: "/crossing/plain/1/" },
317317
{ label: "Preserved State", link: "/crossing/vanilla/1/" },
318318
{ label: "Preserved State (exp.)", link: "/crossing/over-the-top/1/" },
319+
{ label: "Google Demo, but with link-types plumbing", link: "/navigation-types/" },
319320
{ label: "Turn Signal Directions", link: "/signal-demo/bag/" },
320321
{ label: "Image Viewer Demo", link: "/viewer-demo/" },
321322
{ label: "🌟 Fishpond Demo", link: "/link-demo/" },

src/assets/monsters.png

42.3 KB
Loading

src/content/docs/tools/turn-signal.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,23 @@ The Turn-Signal scripts are designed for use with cross-document view transition
5252
import { Card } from "@astrojs/starlight/components";
5353
import { CardGrid } from "@astrojs/starlight/components";
5454
import { Image } from 'astro:assets';
55+
import linkTypes from "@/assets/monsters.png"
5556
import viewer from "@/assets/viewer-demo.png"
5657
import fishpond from "@/assets/pond.png"
5758
import forced from "@/assets/ft.png"
5859
import dark_signal from "@/pages/demo-explainer/_TurnSignalDemo-dark.png"
5960
import light_signal from "@/pages/demo-explainer/_TurnSignalDemo-light.png"
6061

6162
<CardGrid>
63+
<Card title="Link-Types Demo">
64+
65+
<span id="link-types"><a href="/navigation-types/"><Image src={linkTypes} alt="viewer" data-zoom-off/></a></span>
66+
67+
Took a shiny Google demo and replaced their View Transition Toolkit with the Bag's _link-types_ script.
68+
69+
See the [Link Types Demo](/navigation-types/) to learn how link annotations control transition types and animations.
70+
</Card>
71+
6272
<Card title="Turn-Signal Demo">
6373

6474
<span id="signal"><a href="/signal-demo/bag/" data-vtbag-link-types="same/open"><span class="light:sl-hidden"><Image src={dark_signal} alt="signal" data-zoom-off/></span><span class="dark:sl-hidden"><Image src={light_signal} alt="signal" data-zoom-off/></span></a></span>

0 commit comments

Comments
 (0)