# Transitions (/start/canvas-transition)



Pixi’VN provides various transition effects to show or remove a <DynamicLink href="/start/canvas-components">canvas component</DynamicLink>, as well as the ability to [create your own transitions](#custom-functionality).

<Accordions>
  <Accordion title="Dissolve" id="dissolve">
    The dissolve transition:

    * When showing a component, gradually increases its `alpha`. If a component with the same alias exists, it will be removed when the new component's transition is complete.
    * When removing a component, gradually decreases its `alpha`.

    The [`transitions.showWithDissolve`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/showWithDissolve) function displays a canvas element with a dissolve transition.

    The [`transitions.removeWithDissolve`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/removeWithDissolve) function removes a canvas element with a dissolve transition.

    <CodeBlockTabs defaultValue="content/labels/start.label.ts">
      <CodeBlockTabsList>
        <CodeBlockTabsTrigger value="content/labels/start.label.ts">
          content/labels/start.label.ts
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="assets/index.ts">
          assets/index.ts
        </CodeBlockTabsTrigger>
      </CodeBlockTabsList>

      <CodeBlockTab value="content/labels/start.label.ts">
        ```ts
        import { newLabel, transitions } from "@drincs/pixi-vn";

        export const startLabel = newLabel("start", [
            async () => {
                await transitions.showWithDissolve("alien", "egg_head");
                await transitions.showWithDissolve("human", {
                    value: ["m01-body", "m01-eyes", "m01-mouth"],
                    options: { scale: 0.5, xAlign: 0.7 },
                });
            },
            async () => {
                await transitions.showWithDissolve("alien", "flower_top");
                transitions.removeWithDissolve("human");
            },
        ]);
        ```
      </CodeBlockTab>

      <CodeBlockTab value="assets/index.ts">
        ```ts
        import { AssetsManifest } from "@drincs/pixi-vn";

        /**
         * Manifest for the assets used in the game.
         * You can read more about the manifest here: https://pixijs.com/8.x/guides/components/assets#loading-multiple-assets
         */
        export const manifest: AssetsManifest = {
            bundles: [
                {
                    name: "start",
                    assets: [
                        {
                            alias: "egg_head",
                            src: "https://pixijs.com/assets/eggHead.png",
                        },
                        {
                            alias: "flower_top",
                            src: "https://pixijs.com/assets/flowerTop.png",
                        },
                        {
                            alias: "m01-body",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-body.webp",
                        },
                        {
                            alias: "m01-eyes",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-eyes-smile.webp",
                        },
                        {
                            alias: "m01-mouth",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-mouth-smile00.webp",
                        },
                    ],
                },
            ],
        };
        ```
      </CodeBlockTab>
    </CodeBlockTabs>

    <PixiVnExample path="canvas/dissolve-transition" />
  </Accordion>

  <Accordion title="Fade" id="fade">
    The fade transition:

    * When showing a component, gradually increases its `alpha`. If a component with the same alias exists, the existing component will be removed with a fade-out effect before the new component is shown.
    * When removing a component, gradually decreases its `alpha`.

    The [`transitions.showWithFade`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/showWithFade) function displays a canvas element with a fade transition.

    The [`transitions.removeWithFade`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/removeWithFade) function removes a canvas element with a fade transition.

    <CodeBlockTabs defaultValue="content/labels/start.label.ts">
      <CodeBlockTabsList>
        <CodeBlockTabsTrigger value="content/labels/start.label.ts">
          content/labels/start.label.ts
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="assets/index.ts">
          assets/index.ts
        </CodeBlockTabsTrigger>
      </CodeBlockTabsList>

      <CodeBlockTab value="content/labels/start.label.ts">
        ```ts
        import { newLabel, transitions } from "@drincs/pixi-vn";

        export const startLabel = newLabel("start", [
            async () => {
                await transitions.showWithFade("alien", "egg_head", { duration: 5 });
                await transitions.showWithFade("human", {
                    value: ["m01-body", "m01-eyes", "m01-mouth"],
                    options: { scale: 0.5, xAlign: 0.7 },
                });
            },
            async () => {
                await transitions.showWithFade("alien", "flower_top");
                transitions.removeWithFade("human");
            },
        ]);
        ```
      </CodeBlockTab>

      <CodeBlockTab value="assets/index.ts">
        ```ts
        import { AssetsManifest } from "@drincs/pixi-vn";

        /**
         * Manifest for the assets used in the game.
         * You can read more about the manifest here: https://pixijs.com/8.x/guides/components/assets#loading-multiple-assets
         */
        export const manifest: AssetsManifest = {
            bundles: [
                {
                    name: "start",
                    assets: [
                        {
                            alias: "egg_head",
                            src: "https://pixijs.com/assets/eggHead.png",
                        },
                        {
                            alias: "flower_top",
                            src: "https://pixijs.com/assets/flowerTop.png",
                        },
                        {
                            alias: "m01-body",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-body.webp",
                        },
                        {
                            alias: "m01-eyes",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-eyes-smile.webp",
                        },
                        {
                            alias: "m01-mouth",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-mouth-smile00.webp",
                        },
                    ],
                },
            ],
        };
        ```
      </CodeBlockTab>
    </CodeBlockTabs>

    <PixiVnExample path="canvas/fade-transition" />
  </Accordion>

  <Accordion title="Move in/out" id="move-in-out">
    The move in/out transition:

    * When showing a component, moves it from outside (right, left, top, or bottom) to its position on the canvas. If a component with the same alias exists, the existing component will be removed with a move-out effect before the new component is shown.
    * When removing a component, moves it from its position to outside the canvas.

    The [`transitions.moveIn`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/moveIn) function displays a canvas element with a move-in transition.

    The [`transitions.moveOut`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/moveOut) function removes a canvas element with a move-out transition.

    <CodeBlockTabs defaultValue="content/labels/start.label.ts">
      <CodeBlockTabsList>
        <CodeBlockTabsTrigger value="content/labels/start.label.ts">
          content/labels/start.label.ts
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="assets/index.ts">
          assets/index.ts
        </CodeBlockTabsTrigger>
      </CodeBlockTabsList>

      <CodeBlockTab value="content/labels/start.label.ts">
        ```ts
        import { newLabel, transitions } from "@drincs/pixi-vn";

        export const startLabel = newLabel("start", [
            async () => {
                await transitions.moveIn("alien", "egg_head", { direction: "up" });
                await transitions.moveIn("human", {
                    value: ["m01-body", "m01-eyes", "m01-mouth"],
                    options: { scale: 0.5, xAlign: 0.7 },
                });
            },
            async () => {
                await transitions.moveIn("alien", "flower_top", { direction: "up" });
                transitions.moveOut("human");
            },
        ]);
        ```
      </CodeBlockTab>

      <CodeBlockTab value="assets/index.ts">
        ```ts
        import { AssetsManifest } from "@drincs/pixi-vn";

        /**
         * Manifest for the assets used in the game.
         * You can read more about the manifest here: https://pixijs.com/8.x/guides/components/assets#loading-multiple-assets
         */
        export const manifest: AssetsManifest = {
            bundles: [
                {
                    name: "start",
                    assets: [
                        {
                            alias: "egg_head",
                            src: "https://pixijs.com/assets/eggHead.png",
                        },
                        {
                            alias: "flower_top",
                            src: "https://pixijs.com/assets/flowerTop.png",
                        },
                        {
                            alias: "m01-body",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-body.webp",
                        },
                        {
                            alias: "m01-eyes",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-eyes-smile.webp",
                        },
                        {
                            alias: "m01-mouth",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-mouth-smile00.webp",
                        },
                    ],
                },
            ],
        };
        ```
      </CodeBlockTab>
    </CodeBlockTabs>

    <PixiVnExample path="canvas/movein-transition" />
  </Accordion>

  <Accordion title="Push in/out" id="push-in-out">
    The push in/out transition:

    * When showing a component, moves it from outside (right, left, top, or bottom) to its position on the canvas. If a component with the same alias exists, the existing component will be removed with a push-out effect while the new component is moving in.
    * When removing a component, moves it from its position to outside the canvas.

    The [`transitions.pushIn`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/pushIn) function displays a canvas element with a push-in transition.

    The [`transitions.pushOut`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/pushOut) function removes a canvas element with a push-out transition.

    <CodeBlockTabs defaultValue="content/labels/start.label.ts">
      <CodeBlockTabsList>
        <CodeBlockTabsTrigger value="content/labels/start.label.ts">
          content/labels/start.label.ts
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="assets/index.ts">
          assets/index.ts
        </CodeBlockTabsTrigger>
      </CodeBlockTabsList>

      <CodeBlockTab value="content/labels/start.label.ts">
        ```ts
        import { newLabel, transitions } from "@drincs/pixi-vn";

        export const startLabel = newLabel("start", [
            async () => {
                await transitions.pushIn("alien", "egg_head");
                await transitions.pushIn("human", {
                    value: ["m01-body", "m01-eyes", "m01-mouth"],
                    options: { scale: 0.5, xAlign: 0.7 },
                });
            },
            async () => {
                await transitions.pushIn("alien", "flower_top", { direction: "up" });
                transitions.pushOut("human");
            },
        ]);
        ```
      </CodeBlockTab>

      <CodeBlockTab value="assets/index.ts">
        ```ts
        import { AssetsManifest } from "@drincs/pixi-vn";

        /**
         * Manifest for the assets used in the game.
         * You can read more about the manifest here: https://pixijs.com/8.x/guides/components/assets#loading-multiple-assets
         */
        export const manifest: AssetsManifest = {
            bundles: [
                {
                    name: "start",
                    assets: [
                        {
                            alias: "egg_head",
                            src: "https://pixijs.com/assets/eggHead.png",
                        },
                        {
                            alias: "flower_top",
                            src: "https://pixijs.com/assets/flowerTop.png",
                        },
                        {
                            alias: "m01-body",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-body.webp",
                        },
                        {
                            alias: "m01-eyes",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-eyes-smile.webp",
                        },
                        {
                            alias: "m01-mouth",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-mouth-smile00.webp",
                        },
                    ],
                },
            ],
        };
        ```
      </CodeBlockTab>
    </CodeBlockTabs>

    <PixiVnExample path="canvas/pushin-transition" />
  </Accordion>

  <Accordion title="Zoom in/out" id="zoom-in-out">
    The zoom in/out transition:

    * When showing a component, scales it from 0 (from outside the canvas) to its original scale and position. If a component with the same alias exists, the existing component will be removed when the new component's transition is complete.
    * When removing a component, scales it from its original size to 0, moving it outside the canvas.

    The [`transitions.zoomIn`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/zoomIn) function displays a canvas element with a zoom-in transition.

    The [`transitions.zoomOut`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/zoomOut) function removes a canvas element with a zoom-out transition.

    <CodeBlockTabs defaultValue="content/labels/start.label.ts">
      <CodeBlockTabsList>
        <CodeBlockTabsTrigger value="content/labels/start.label.ts">
          content/labels/start.label.ts
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="assets/index.ts">
          assets/index.ts
        </CodeBlockTabsTrigger>
      </CodeBlockTabsList>

      <CodeBlockTab value="content/labels/start.label.ts">
        ```ts
        import { newLabel, transitions } from "@drincs/pixi-vn";

        export const startLabel = newLabel("start", [
            async () => {
                await transitions.zoomIn("alien", "egg_head");
                await transitions.zoomIn("human", {
                    value: ["m01-body", "m01-eyes", "m01-mouth"],
                    options: { scale: 0.5, xAlign: 0.7 },
                });
            },
            async () => {
                await transitions.zoomIn("alien", "flower_top");
                transitions.zoomOut("human");
            },
        ]);
        ```
      </CodeBlockTab>

      <CodeBlockTab value="assets/index.ts">
        ```ts
        import { AssetsManifest } from "@drincs/pixi-vn";

        /**
         * Manifest for the assets used in the game.
         * You can read more about the manifest here: https://pixijs.com/8.x/guides/components/assets#loading-multiple-assets
         */
        export const manifest: AssetsManifest = {
            bundles: [
                {
                    name: "start",
                    assets: [
                        {
                            alias: "egg_head",
                            src: "https://pixijs.com/assets/eggHead.png",
                        },
                        {
                            alias: "flower_top",
                            src: "https://pixijs.com/assets/flowerTop.png",
                        },
                        {
                            alias: "m01-body",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-body.webp",
                        },
                        {
                            alias: "m01-eyes",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-eyes-smile.webp",
                        },
                        {
                            alias: "m01-mouth",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-mouth-smile00.webp",
                        },
                    ],
                },
            ],
        };
        ```
      </CodeBlockTab>
    </CodeBlockTabs>

    <PixiVnExample path="canvas/zoomin-transition" />
  </Accordion>

  <Accordion title="Wipe in/out" id="wipe-in-out">
    > This animation was introduced in version v1.9.5.

    The wipe in/out transition reveals or conceals a component using a moving boundary. It is a single generic primitive rather than separate `wipeLeft`/`wipeRight` functions: the boundary's `angle` (or a `direction` shorthand), edge `softness`, and `invert` are all configurable, so the same primitive can produce horizontal, vertical, diagonal, hard-edged, or soft-edged reveals.

    * When showing a component, progressively reveals it as the boundary sweeps across. If a component with the same alias exists, it will be removed when the new component's transition is complete.
    * When removing a component, progressively conceals it as the boundary sweeps across.

    The [`transitions.wipeIn`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/wipeIn) function displays a canvas element with a wipe-in transition.

    The [`transitions.wipeOut`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/wipeOut) function removes a canvas element with a wipe-out transition.

    <CodeBlockTabs defaultValue="content/labels/start.label.ts">
      <CodeBlockTabsList>
        <CodeBlockTabsTrigger value="content/labels/start.label.ts">
          content/labels/start.label.ts
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="assets/index.ts">
          assets/index.ts
        </CodeBlockTabsTrigger>
      </CodeBlockTabsList>

      <CodeBlockTab value="content/labels/start.label.ts">
        ```ts
        import { newLabel, transitions } from "@drincs/pixi-vn";

        export const startLabel = newLabel("start", [
            async () => {
                await transitions.wipeIn("alien", "egg_head");
                await transitions.wipeIn("human", {
                    value: ["m01-body", "m01-eyes", "m01-mouth"],
                    options: { scale: 0.5, xAlign: 0.7 },
                });
            },
            async () => {
                await transitions.wipeIn("alien", "flower_top", { angle: 45, softness: 30 });
                transitions.wipeOut("human");
            },
        ]);
        ```
      </CodeBlockTab>

      <CodeBlockTab value="assets/index.ts">
        ```ts
        import { AssetsManifest } from "@drincs/pixi-vn";

        /**
         * Manifest for the assets used in the game.
         * You can read more about the manifest here: https://pixijs.com/8.x/guides/components/assets#loading-multiple-assets
         */
        export const manifest: AssetsManifest = {
            bundles: [
                {
                    name: "start",
                    assets: [
                        {
                            alias: "egg_head",
                            src: "https://pixijs.com/assets/eggHead.png",
                        },
                        {
                            alias: "flower_top",
                            src: "https://pixijs.com/assets/flowerTop.png",
                        },
                        {
                            alias: "m01-body",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-body.webp",
                        },
                        {
                            alias: "m01-eyes",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-eyes-smile.webp",
                        },
                        {
                            alias: "m01-mouth",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-mouth-smile00.webp",
                        },
                    ],
                },
            ],
        };
        ```
      </CodeBlockTab>
    </CodeBlockTabs>

    <PixiVnExample path="canvas/wipein-transition" />
  </Accordion>

  <Accordion title="Iris in/out" id="iris-in-out">
    > This animation was introduced in version v1.9.5.

    The iris in/out transition reveals or conceals a component using an expanding or contracting radial mask. A centered circular iris is only one configuration: moving `origin` off-center (normalized to the component's own bounds) makes the same primitive useful as a focus/reveal effect centered on a character, and `aspect` turns the circle into a wide or tall ellipse.

    * When showing a component, the mask expands from `origin` to progressively reveal it. If a component with the same alias exists, it will be removed when the new component's transition is complete.
    * When removing a component, the mask contracts back towards `origin` to progressively conceal it.

    The [`transitions.irisIn`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/irisIn) function displays a canvas element with an iris-in transition.

    The [`transitions.irisOut`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/irisOut) function removes a canvas element with an iris-out transition.

    <CodeBlockTabs defaultValue="content/labels/start.label.ts">
      <CodeBlockTabsList>
        <CodeBlockTabsTrigger value="content/labels/start.label.ts">
          content/labels/start.label.ts
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="assets/index.ts">
          assets/index.ts
        </CodeBlockTabsTrigger>
      </CodeBlockTabsList>

      <CodeBlockTab value="content/labels/start.label.ts">
        ```ts
        import { newLabel, transitions } from "@drincs/pixi-vn";

        export const startLabel = newLabel("start", [
            async () => {
                await transitions.irisIn("alien", "egg_head");
                await transitions.irisIn("human", {
                    value: ["m01-body", "m01-eyes", "m01-mouth"],
                    options: { scale: 0.5, xAlign: 0.7 },
                });
            },
            async () => {
                await transitions.irisIn("alien", "flower_top", {
                    origin: { x: 0.2, y: 0.8 },
                    softness: 25,
                });
                transitions.irisOut("human");
            },
        ]);
        ```
      </CodeBlockTab>

      <CodeBlockTab value="assets/index.ts">
        ```ts
        import { AssetsManifest } from "@drincs/pixi-vn";

        /**
         * Manifest for the assets used in the game.
         * You can read more about the manifest here: https://pixijs.com/8.x/guides/components/assets#loading-multiple-assets
         */
        export const manifest: AssetsManifest = {
            bundles: [
                {
                    name: "start",
                    assets: [
                        {
                            alias: "egg_head",
                            src: "https://pixijs.com/assets/eggHead.png",
                        },
                        {
                            alias: "flower_top",
                            src: "https://pixijs.com/assets/flowerTop.png",
                        },
                        {
                            alias: "m01-body",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-body.webp",
                        },
                        {
                            alias: "m01-eyes",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-eyes-smile.webp",
                        },
                        {
                            alias: "m01-mouth",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-mouth-smile00.webp",
                        },
                    ],
                },
            ],
        };
        ```
      </CodeBlockTab>
    </CodeBlockTabs>

    <PixiVnExample path="canvas/irisin-transition" />
  </Accordion>

  <Accordion title="Split in/out" id="split-in-out">
    > This animation was introduced in version v1.9.5.

    The split in/out transition reveals or conceals a component using two mask panels that move apart or together. It covers "curtain"-like effects without a dedicated, story-specific API: `orientation` picks whether the panels split vertically or horizontally, and `origin` moves the split line off-center.

    * When showing a component, the two panels slide together from the edges to progressively reveal it, meeting at the split line once fully shown. If a component with the same alias exists, it will be removed when the new component's transition is complete.
    * When removing a component, the two panels retract apart towards the edges to progressively conceal it.

    The [`transitions.splitIn`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/splitIn) function displays a canvas element with a split-in transition.

    The [`transitions.splitOut`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/splitOut) function removes a canvas element with a split-out transition.

    <CodeBlockTabs defaultValue="content/labels/start.label.ts">
      <CodeBlockTabsList>
        <CodeBlockTabsTrigger value="content/labels/start.label.ts">
          content/labels/start.label.ts
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="assets/index.ts">
          assets/index.ts
        </CodeBlockTabsTrigger>
      </CodeBlockTabsList>

      <CodeBlockTab value="content/labels/start.label.ts">
        ```ts
        import { newLabel, transitions } from "@drincs/pixi-vn";

        export const startLabel = newLabel("start", [
            async () => {
                await transitions.splitIn("alien", "egg_head");
                await transitions.splitIn("human", {
                    value: ["m01-body", "m01-eyes", "m01-mouth"],
                    options: { scale: 0.5, xAlign: 0.7 },
                });
            },
            async () => {
                await transitions.splitIn("alien", "flower_top", {
                    orientation: "horizontal",
                    origin: 0.25,
                });
                transitions.splitOut("human");
            },
        ]);
        ```
      </CodeBlockTab>

      <CodeBlockTab value="assets/index.ts">
        ```ts
        import { AssetsManifest } from "@drincs/pixi-vn";

        /**
         * Manifest for the assets used in the game.
         * You can read more about the manifest here: https://pixijs.com/8.x/guides/components/assets#loading-multiple-assets
         */
        export const manifest: AssetsManifest = {
            bundles: [
                {
                    name: "start",
                    assets: [
                        {
                            alias: "egg_head",
                            src: "https://pixijs.com/assets/eggHead.png",
                        },
                        {
                            alias: "flower_top",
                            src: "https://pixijs.com/assets/flowerTop.png",
                        },
                        {
                            alias: "m01-body",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-body.webp",
                        },
                        {
                            alias: "m01-eyes",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-eyes-smile.webp",
                        },
                        {
                            alias: "m01-mouth",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-mouth-smile00.webp",
                        },
                    ],
                },
            ],
        };
        ```
      </CodeBlockTab>
    </CodeBlockTabs>

    <PixiVnExample path="canvas/splitin-transition" />
  </Accordion>

  <Accordion title="Flash in/out" id="flash-in-out">
    > This animation was introduced in version v1.9.5.

    The flash in/out transition plays a configurable solid-color overlay that fades in, optionally holds, and fades back out — not limited to a white flash. White reads as a camera/explosion-like flash, black behaves like a blink/cut, and arbitrary colors work for damage, magic, memory, or UI transitions. `pulses` repeats the fade-in/hold/fade-out cycle for a multi-flash effect (e.g. a damage flash).

    * When showing a component, the new component appears immediately and the overlay plays over it.
    * When removing a component, the overlay plays over it and it is then removed.

    The [`transitions.flashIn`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/flashIn) function displays a canvas element with a flash-in transition.

    The [`transitions.flashOut`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/flashOut) function removes a canvas element with a flash-out transition.

    <CodeBlockTabs defaultValue="content/labels/start.label.ts">
      <CodeBlockTabsList>
        <CodeBlockTabsTrigger value="content/labels/start.label.ts">
          content/labels/start.label.ts
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="assets/index.ts">
          assets/index.ts
        </CodeBlockTabsTrigger>
      </CodeBlockTabsList>

      <CodeBlockTab value="content/labels/start.label.ts">
        ```ts
        import { newLabel, transitions } from "@drincs/pixi-vn";

        export const startLabel = newLabel("start", [
            async () => {
                await transitions.flashIn("alien", "egg_head");
                await transitions.flashIn("human", {
                    value: ["m01-body", "m01-eyes", "m01-mouth"],
                    options: { scale: 0.5, xAlign: 0.7 },
                });
            },
            async () => {
                await transitions.flashIn("alien", "flower_top", {
                    color: 0xff0033,
                    holdDuration: 0.05,
                    pulses: 3,
                });
                transitions.flashOut("human", { color: 0x000000 });
            },
        ]);
        ```
      </CodeBlockTab>

      <CodeBlockTab value="assets/index.ts">
        ```ts
        import { AssetsManifest } from "@drincs/pixi-vn";

        /**
         * Manifest for the assets used in the game.
         * You can read more about the manifest here: https://pixijs.com/8.x/guides/components/assets#loading-multiple-assets
         */
        export const manifest: AssetsManifest = {
            bundles: [
                {
                    name: "start",
                    assets: [
                        {
                            alias: "egg_head",
                            src: "https://pixijs.com/assets/eggHead.png",
                        },
                        {
                            alias: "flower_top",
                            src: "https://pixijs.com/assets/flowerTop.png",
                        },
                        {
                            alias: "m01-body",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-body.webp",
                        },
                        {
                            alias: "m01-eyes",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-eyes-smile.webp",
                        },
                        {
                            alias: "m01-mouth",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-mouth-smile00.webp",
                        },
                    ],
                },
            ],
        };
        ```
      </CodeBlockTab>
    </CodeBlockTabs>

    <PixiVnExample path="canvas/flashin-transition" />
  </Accordion>

  <Accordion title="Blur in/out" id="blur-in-out">
    > This animation was introduced in version v1.9.5.

    The blur in/out transition animates blur strength into or out of focus. It is a generic blur, not a "dream"/"flashback" transition specifically — combine it with `showWithFade` for that recipe (see [custom functionality](#custom-functionality) below for building recipes).

    * When showing a component, it appears already blurred and sharpens into focus. If a component with the same alias exists, it will be removed when the new component's transition is complete.
    * When removing a component, it blurs out of focus before being removed.

    The [`transitions.blurIn`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/blurIn) function displays a canvas element with a blur-in transition.

    The [`transitions.blurOut`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/blurOut) function removes a canvas element with a blur-out transition.

    <CodeBlockTabs defaultValue="content/labels/start.label.ts">
      <CodeBlockTabsList>
        <CodeBlockTabsTrigger value="content/labels/start.label.ts">
          content/labels/start.label.ts
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="assets/index.ts">
          assets/index.ts
        </CodeBlockTabsTrigger>
      </CodeBlockTabsList>

      <CodeBlockTab value="content/labels/start.label.ts">
        ```ts
        import { newLabel, transitions } from "@drincs/pixi-vn";

        export const startLabel = newLabel("start", [
            async () => {
                await transitions.blurIn("alien", "egg_head");
                await transitions.blurIn("human", {
                    value: ["m01-body", "m01-eyes", "m01-mouth"],
                    options: { scale: 0.5, xAlign: 0.7 },
                });
            },
            async () => {
                await transitions.blurIn("alien", "flower_top", { strength: 60, quality: 6 });
                transitions.blurOut("human");
            },
        ]);
        ```
      </CodeBlockTab>

      <CodeBlockTab value="assets/index.ts">
        ```ts
        import { AssetsManifest } from "@drincs/pixi-vn";

        /**
         * Manifest for the assets used in the game.
         * You can read more about the manifest here: https://pixijs.com/8.x/guides/components/assets#loading-multiple-assets
         */
        export const manifest: AssetsManifest = {
            bundles: [
                {
                    name: "start",
                    assets: [
                        {
                            alias: "egg_head",
                            src: "https://pixijs.com/assets/eggHead.png",
                        },
                        {
                            alias: "flower_top",
                            src: "https://pixijs.com/assets/flowerTop.png",
                        },
                        {
                            alias: "m01-body",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-body.webp",
                        },
                        {
                            alias: "m01-eyes",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-eyes-smile.webp",
                        },
                        {
                            alias: "m01-mouth",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-mouth-smile00.webp",
                        },
                    ],
                },
            ],
        };
        ```
      </CodeBlockTab>
    </CodeBlockTabs>

    <PixiVnExample path="canvas/blurin-transition" />
  </Accordion>

  <Accordion title="Pixelate in/out" id="pixelate-in-out">
    > This animation was introduced in version v1.9.5.

    The pixelate in/out transition animates pixelation strength into or out of focus. Useful for retro effects, digital transitions, censorship/stylization, or scene changes — not only "glitch" scenes.

    * When showing a component, it appears already pixelated and resolves into focus. If a component with the same alias exists, it will be removed when the new component's transition is complete.
    * When removing a component, it pixelates into blocks before being removed.

    The [`transitions.pixelateIn`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/pixelateIn) function displays a canvas element with a pixelate-in transition.

    The [`transitions.pixelateOut`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/pixelateOut) function removes a canvas element with a pixelate-out transition.

    <CodeBlockTabs defaultValue="content/labels/start.label.ts">
      <CodeBlockTabsList>
        <CodeBlockTabsTrigger value="content/labels/start.label.ts">
          content/labels/start.label.ts
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="assets/index.ts">
          assets/index.ts
        </CodeBlockTabsTrigger>
      </CodeBlockTabsList>

      <CodeBlockTab value="content/labels/start.label.ts">
        ```ts
        import { newLabel, transitions } from "@drincs/pixi-vn";

        export const startLabel = newLabel("start", [
            async () => {
                await transitions.pixelateIn("alien", "egg_head");
                await transitions.pixelateIn("human", {
                    value: ["m01-body", "m01-eyes", "m01-mouth"],
                    options: { scale: 0.5, xAlign: 0.7 },
                });
            },
            async () => {
                await transitions.pixelateIn("alien", "flower_top", { pixelSize: 64 });
                transitions.pixelateOut("human");
            },
        ]);
        ```
      </CodeBlockTab>

      <CodeBlockTab value="assets/index.ts">
        ```ts
        import { AssetsManifest } from "@drincs/pixi-vn";

        /**
         * Manifest for the assets used in the game.
         * You can read more about the manifest here: https://pixijs.com/8.x/guides/components/assets#loading-multiple-assets
         */
        export const manifest: AssetsManifest = {
            bundles: [
                {
                    name: "start",
                    assets: [
                        {
                            alias: "egg_head",
                            src: "https://pixijs.com/assets/eggHead.png",
                        },
                        {
                            alias: "flower_top",
                            src: "https://pixijs.com/assets/flowerTop.png",
                        },
                        {
                            alias: "m01-body",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-body.webp",
                        },
                        {
                            alias: "m01-eyes",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-eyes-smile.webp",
                        },
                        {
                            alias: "m01-mouth",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-mouth-smile00.webp",
                        },
                    ],
                },
            ],
        };
        ```
      </CodeBlockTab>
    </CodeBlockTabs>

    <PixiVnExample path="canvas/pixelatein-transition" />
  </Accordion>

  <Accordion title="Glitch in/out" id="glitch-in-out">
    > This animation was introduced in version v1.9.5.

    The glitch in/out transition builds up (or dies down) digital-corruption bursts: displaced slices and, optionally, an RGB channel split.

    * When showing a component, glitch bursts fade out until the image settles clean. If a component with the same alias exists, it will be removed when the new component's transition is complete.
    * When removing a component, glitch bursts build up until the image is removed.

    The [`transitions.glitchIn`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/glitchIn) function displays a canvas element with a glitch-in transition.

    The [`transitions.glitchOut`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/glitchOut) function removes a canvas element with a glitch-out transition.

    <CodeBlockTabs defaultValue="content/labels/start.label.ts">
      <CodeBlockTabsList>
        <CodeBlockTabsTrigger value="content/labels/start.label.ts">
          content/labels/start.label.ts
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="assets/index.ts">
          assets/index.ts
        </CodeBlockTabsTrigger>
      </CodeBlockTabsList>

      <CodeBlockTab value="content/labels/start.label.ts">
        ```ts
        import { newLabel, transitions } from "@drincs/pixi-vn";

        export const startLabel = newLabel("start", [
            async () => {
                await transitions.glitchIn("alien", "egg_head");
                await transitions.glitchIn("human", {
                    value: ["m01-body", "m01-eyes", "m01-mouth"],
                    options: { scale: 0.5, xAlign: 0.7 },
                });
            },
            async () => {
                await transitions.glitchIn("alien", "flower_top", { strength: 60, bursts: 4, rgbSplit: 10 });
                transitions.glitchOut("human");
            },
        ]);
        ```
      </CodeBlockTab>

      <CodeBlockTab value="assets/index.ts">
        ```ts
        import { AssetsManifest } from "@drincs/pixi-vn";

        /**
         * Manifest for the assets used in the game.
         * You can read more about the manifest here: https://pixijs.com/8.x/guides/components/assets#loading-multiple-assets
         */
        export const manifest: AssetsManifest = {
            bundles: [
                {
                    name: "start",
                    assets: [
                        {
                            alias: "egg_head",
                            src: "https://pixijs.com/assets/eggHead.png",
                        },
                        {
                            alias: "flower_top",
                            src: "https://pixijs.com/assets/flowerTop.png",
                        },
                        {
                            alias: "m01-body",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-body.webp",
                        },
                        {
                            alias: "m01-eyes",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-eyes-smile.webp",
                        },
                        {
                            alias: "m01-mouth",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-mouth-smile00.webp",
                        },
                    ],
                },
            ],
        };
        ```
      </CodeBlockTab>
    </CodeBlockTabs>

    <PixiVnExample path="canvas/glitchin-transition" />
  </Accordion>

  <Accordion title="Twist in/out" id="twist-in-out">
    > This animation was introduced in version v1.9.5.

    The twist in/out transition unwinds (or winds up) a component out of a swirl, like coming through a vortex or portal.

    * When showing a component, it unwinds out of a swirl into its normal shape. If a component with the same alias exists, it will be removed when the new component's transition is complete.
    * When removing a component, it winds up into a swirl before being removed.

    The [`transitions.twistIn`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/twistIn) function displays a canvas element with a twist-in transition.

    The [`transitions.twistOut`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/twistOut) function removes a canvas element with a twist-out transition.

    <CodeBlockTabs defaultValue="content/labels/start.label.ts">
      <CodeBlockTabsList>
        <CodeBlockTabsTrigger value="content/labels/start.label.ts">
          content/labels/start.label.ts
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="assets/index.ts">
          assets/index.ts
        </CodeBlockTabsTrigger>
      </CodeBlockTabsList>

      <CodeBlockTab value="content/labels/start.label.ts">
        ```ts
        import { newLabel, transitions } from "@drincs/pixi-vn";

        export const startLabel = newLabel("start", [
            async () => {
                await transitions.twistIn("alien", "egg_head");
                await transitions.twistIn("human", {
                    value: ["m01-body", "m01-eyes", "m01-mouth"],
                    options: { scale: 0.5, xAlign: 0.7 },
                });
            },
            async () => {
                await transitions.twistIn("alien", "flower_top", { angle: 720 });
                transitions.twistOut("human");
            },
        ]);
        ```
      </CodeBlockTab>

      <CodeBlockTab value="assets/index.ts">
        ```ts
        import { AssetsManifest } from "@drincs/pixi-vn";

        /**
         * Manifest for the assets used in the game.
         * You can read more about the manifest here: https://pixijs.com/8.x/guides/components/assets#loading-multiple-assets
         */
        export const manifest: AssetsManifest = {
            bundles: [
                {
                    name: "start",
                    assets: [
                        {
                            alias: "egg_head",
                            src: "https://pixijs.com/assets/eggHead.png",
                        },
                        {
                            alias: "flower_top",
                            src: "https://pixijs.com/assets/flowerTop.png",
                        },
                        {
                            alias: "m01-body",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-body.webp",
                        },
                        {
                            alias: "m01-eyes",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-eyes-smile.webp",
                        },
                        {
                            alias: "m01-mouth",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-mouth-smile00.webp",
                        },
                    ],
                },
            ],
        };
        ```
      </CodeBlockTab>
    </CodeBlockTabs>

    <PixiVnExample path="canvas/twistin-transition" />
  </Accordion>

  <Accordion title="Warp in/out" id="warp-in-out">
    > This animation was introduced in version v1.9.5.

    The warp in/out transition arrives (or leaves) through radial zoom-blur streaks, like dropping out of (or into) hyperspace.

    * When showing a component, it arrives out of radial zoom-blur streaks into focus. If a component with the same alias exists, it will be removed when the new component's transition is complete.
    * When removing a component, it streaks away in a radial zoom blur before being removed.

    The [`transitions.warpIn`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/warpIn) function displays a canvas element with a warp-in transition.

    The [`transitions.warpOut`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/warpOut) function removes a canvas element with a warp-out transition.

    <CodeBlockTabs defaultValue="content/labels/start.label.ts">
      <CodeBlockTabsList>
        <CodeBlockTabsTrigger value="content/labels/start.label.ts">
          content/labels/start.label.ts
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="assets/index.ts">
          assets/index.ts
        </CodeBlockTabsTrigger>
      </CodeBlockTabsList>

      <CodeBlockTab value="content/labels/start.label.ts">
        ```ts
        import { newLabel, transitions } from "@drincs/pixi-vn";

        export const startLabel = newLabel("start", [
            async () => {
                await transitions.warpIn("alien", "egg_head");
                await transitions.warpIn("human", {
                    value: ["m01-body", "m01-eyes", "m01-mouth"],
                    options: { scale: 0.5, xAlign: 0.7 },
                });
            },
            async () => {
                await transitions.warpIn("alien", "flower_top", { strength: 0.8 });
                transitions.warpOut("human");
            },
        ]);
        ```
      </CodeBlockTab>

      <CodeBlockTab value="assets/index.ts">
        ```ts
        import { AssetsManifest } from "@drincs/pixi-vn";

        /**
         * Manifest for the assets used in the game.
         * You can read more about the manifest here: https://pixijs.com/8.x/guides/components/assets#loading-multiple-assets
         */
        export const manifest: AssetsManifest = {
            bundles: [
                {
                    name: "start",
                    assets: [
                        {
                            alias: "egg_head",
                            src: "https://pixijs.com/assets/eggHead.png",
                        },
                        {
                            alias: "flower_top",
                            src: "https://pixijs.com/assets/flowerTop.png",
                        },
                        {
                            alias: "m01-body",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-body.webp",
                        },
                        {
                            alias: "m01-eyes",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-eyes-smile.webp",
                        },
                        {
                            alias: "m01-mouth",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-mouth-smile00.webp",
                        },
                    ],
                },
            ],
        };
        ```
      </CodeBlockTab>
    </CodeBlockTabs>

    <PixiVnExample path="canvas/warpin-transition" />
  </Accordion>

  <Accordion title="Ripple in/out" id="ripple-in-out">
    > This animation was introduced in version v1.9.5.

    The ripple in/out transition fades a component in (or out) through a ring of water-like distortion spreading outward from an origin point - useful for dreams, magic, or memories.

    * When showing a component, it fades in through an outward-spreading ripple. If a component with the same alias exists, it will be removed when the new component's transition is complete.
    * When removing a component, a ripple spreads over it as it fades out and is removed.

    The [`transitions.rippleIn`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/rippleIn) function displays a canvas element with a ripple-in transition.

    The [`transitions.rippleOut`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/rippleOut) function removes a canvas element with a ripple-out transition.

    <CodeBlockTabs defaultValue="content/labels/start.label.ts">
      <CodeBlockTabsList>
        <CodeBlockTabsTrigger value="content/labels/start.label.ts">
          content/labels/start.label.ts
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="assets/index.ts">
          assets/index.ts
        </CodeBlockTabsTrigger>
      </CodeBlockTabsList>

      <CodeBlockTab value="content/labels/start.label.ts">
        ```ts
        import { newLabel, transitions } from "@drincs/pixi-vn";

        export const startLabel = newLabel("start", [
            async () => {
                await transitions.rippleIn("alien", "egg_head");
                await transitions.rippleIn("human", {
                    value: ["m01-body", "m01-eyes", "m01-mouth"],
                    options: { scale: 0.5, xAlign: 0.7 },
                });
            },
            async () => {
                await transitions.rippleIn("alien", "flower_top", { origin: { x: 0.2, y: 0.8 }, amplitude: 45 });
                transitions.rippleOut("human");
            },
        ]);
        ```
      </CodeBlockTab>

      <CodeBlockTab value="assets/index.ts">
        ```ts
        import { AssetsManifest } from "@drincs/pixi-vn";

        /**
         * Manifest for the assets used in the game.
         * You can read more about the manifest here: https://pixijs.com/8.x/guides/components/assets#loading-multiple-assets
         */
        export const manifest: AssetsManifest = {
            bundles: [
                {
                    name: "start",
                    assets: [
                        {
                            alias: "egg_head",
                            src: "https://pixijs.com/assets/eggHead.png",
                        },
                        {
                            alias: "flower_top",
                            src: "https://pixijs.com/assets/flowerTop.png",
                        },
                        {
                            alias: "m01-body",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-body.webp",
                        },
                        {
                            alias: "m01-eyes",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-eyes-smile.webp",
                        },
                        {
                            alias: "m01-mouth",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-mouth-smile00.webp",
                        },
                    ],
                },
            ],
        };
        ```
      </CodeBlockTab>
    </CodeBlockTabs>

    <PixiVnExample path="canvas/ripplein-transition" />
  </Accordion>

  <Accordion title="Noise dissolve in/out" id="noise-dissolve-in-out">
    > This animation was introduced in version v1.9.5.

    The noise dissolve in/out transition is the classic visual-novel image dissolve: the component appears (or disappears) in organic, noise-shaped blotches, or as a cloudy fade with `edge: "soft"`.

    * When showing a component, it appears in noise-shaped blotches (or a cloudy fade). If a component with the same alias exists, it will be removed when the new component's transition is complete.
    * When removing a component, it disappears in noise-shaped blotches and is then removed.

    The [`transitions.noiseDissolveIn`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/noiseDissolveIn) function displays a canvas element with a noise-dissolve-in transition.

    The [`transitions.noiseDissolveOut`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/noiseDissolveOut) function removes a canvas element with a noise-dissolve-out transition.

    <CodeBlockTabs defaultValue="content/labels/start.label.ts">
      <CodeBlockTabsList>
        <CodeBlockTabsTrigger value="content/labels/start.label.ts">
          content/labels/start.label.ts
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="assets/index.ts">
          assets/index.ts
        </CodeBlockTabsTrigger>
      </CodeBlockTabsList>

      <CodeBlockTab value="content/labels/start.label.ts">
        ```ts
        import { newLabel, transitions } from "@drincs/pixi-vn";

        export const startLabel = newLabel("start", [
            async () => {
                await transitions.noiseDissolveIn("alien", "egg_head");
                await transitions.noiseDissolveIn("human", {
                    value: ["m01-body", "m01-eyes", "m01-mouth"],
                    options: { scale: 0.5, xAlign: 0.7 },
                });
            },
            async () => {
                await transitions.noiseDissolveIn("alien", "flower_top", { edge: "soft", noiseScale: 4 });
                transitions.noiseDissolveOut("human");
            },
        ]);
        ```
      </CodeBlockTab>

      <CodeBlockTab value="assets/index.ts">
        ```ts
        import { AssetsManifest } from "@drincs/pixi-vn";

        /**
         * Manifest for the assets used in the game.
         * You can read more about the manifest here: https://pixijs.com/8.x/guides/components/assets#loading-multiple-assets
         */
        export const manifest: AssetsManifest = {
            bundles: [
                {
                    name: "start",
                    assets: [
                        {
                            alias: "egg_head",
                            src: "https://pixijs.com/assets/eggHead.png",
                        },
                        {
                            alias: "flower_top",
                            src: "https://pixijs.com/assets/flowerTop.png",
                        },
                        {
                            alias: "m01-body",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-body.webp",
                        },
                        {
                            alias: "m01-eyes",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-eyes-smile.webp",
                        },
                        {
                            alias: "m01-mouth",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-mouth-smile00.webp",
                        },
                    ],
                },
            ],
        };
        ```
      </CodeBlockTab>
    </CodeBlockTabs>

    <PixiVnExample path="canvas/noisedissolvein-transition" />
  </Accordion>

  <Accordion title="TV in/out" id="tv-in-out">
    > This animation was introduced in version v1.9.5.

    The TV in/out transition mimics an old CRT television turning on or off: a bright dot stretches into a glowing horizontal line, which then opens up into the full image (with scanlines), or the reverse when removing. The scale animates around the component's own anchor/pivot, so a centered anchor looks best.

    * When showing a component, it opens up from a glowing line into the full image.
    * When removing a component, it collapses into a glowing line, then a dot, and is removed.

    The [`transitions.tvIn`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/tvIn) function displays a canvas element with a TV-in transition.

    The [`transitions.tvOut`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/tvOut) function removes a canvas element with a TV-out transition.

    <CodeBlockTabs defaultValue="content/labels/start.label.ts">
      <CodeBlockTabsList>
        <CodeBlockTabsTrigger value="content/labels/start.label.ts">
          content/labels/start.label.ts
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="assets/index.ts">
          assets/index.ts
        </CodeBlockTabsTrigger>
      </CodeBlockTabsList>

      <CodeBlockTab value="content/labels/start.label.ts">
        ```ts
        import { newLabel, transitions } from "@drincs/pixi-vn";

        export const startLabel = newLabel("start", [
            async () => {
                await transitions.tvIn("alien", "egg_head");
                await transitions.tvIn("human", {
                    value: ["m01-body", "m01-eyes", "m01-mouth"],
                    options: { scale: 0.5, xAlign: 0.7 },
                });
            },
            async () => {
                await transitions.tvIn("alien", "flower_top", { brightness: 4, scanlines: true });
                transitions.tvOut("human");
            },
        ]);
        ```
      </CodeBlockTab>

      <CodeBlockTab value="assets/index.ts">
        ```ts
        import { AssetsManifest } from "@drincs/pixi-vn";

        /**
         * Manifest for the assets used in the game.
         * You can read more about the manifest here: https://pixijs.com/8.x/guides/components/assets#loading-multiple-assets
         */
        export const manifest: AssetsManifest = {
            bundles: [
                {
                    name: "start",
                    assets: [
                        {
                            alias: "egg_head",
                            src: "https://pixijs.com/assets/eggHead.png",
                        },
                        {
                            alias: "flower_top",
                            src: "https://pixijs.com/assets/flowerTop.png",
                        },
                        {
                            alias: "m01-body",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-body.webp",
                        },
                        {
                            alias: "m01-eyes",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-eyes-smile.webp",
                        },
                        {
                            alias: "m01-mouth",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-mouth-smile00.webp",
                        },
                    ],
                },
            ],
        };
        ```
      </CodeBlockTab>
    </CodeBlockTabs>

    <PixiVnExample path="canvas/tvin-transition" />
  </Accordion>

  <Accordion title="Pinch in/out" id="pinch-in-out">
    > This animation was introduced in version v1.9.5.

    The pinch in/out transition makes a component emerge from (or collapse into) a single point, deforming outward as it settles, or puffing outward with `mode: "bulge"`.

    * When showing a component, it emerges from a single point, deforming outward as it settles (or puffs out of it with `mode: "bulge"`). If a component with the same alias exists, it will be removed when the new component's transition is complete.
    * When removing a component, it is sucked into a single point (or puffs out with `mode: "bulge"`) and removed.

    The [`transitions.pinchIn`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/pinchIn) function displays a canvas element with a pinch-in transition.

    The [`transitions.pinchOut`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/pinchOut) function removes a canvas element with a pinch-out transition.

    <CodeBlockTabs defaultValue="content/labels/start.label.ts">
      <CodeBlockTabsList>
        <CodeBlockTabsTrigger value="content/labels/start.label.ts">
          content/labels/start.label.ts
        </CodeBlockTabsTrigger>

        <CodeBlockTabsTrigger value="assets/index.ts">
          assets/index.ts
        </CodeBlockTabsTrigger>
      </CodeBlockTabsList>

      <CodeBlockTab value="content/labels/start.label.ts">
        ```ts
        import { newLabel, transitions } from "@drincs/pixi-vn";

        export const startLabel = newLabel("start", [
            async () => {
                await transitions.pinchIn("alien", "egg_head");
                await transitions.pinchIn("human", {
                    value: ["m01-body", "m01-eyes", "m01-mouth"],
                    options: { scale: 0.5, xAlign: 0.7 },
                });
            },
            async () => {
                await transitions.pinchIn("alien", "flower_top", { mode: "bulge" });
                transitions.pinchOut("human");
            },
        ]);
        ```
      </CodeBlockTab>

      <CodeBlockTab value="assets/index.ts">
        ```ts
        import { AssetsManifest } from "@drincs/pixi-vn";

        /**
         * Manifest for the assets used in the game.
         * You can read more about the manifest here: https://pixijs.com/8.x/guides/components/assets#loading-multiple-assets
         */
        export const manifest: AssetsManifest = {
            bundles: [
                {
                    name: "start",
                    assets: [
                        {
                            alias: "egg_head",
                            src: "https://pixijs.com/assets/eggHead.png",
                        },
                        {
                            alias: "flower_top",
                            src: "https://pixijs.com/assets/flowerTop.png",
                        },
                        {
                            alias: "m01-body",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-body.webp",
                        },
                        {
                            alias: "m01-eyes",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-eyes-smile.webp",
                        },
                        {
                            alias: "m01-mouth",
                            src: "https://raw.githubusercontent.com/DRincs-Productions/pixi-vn-bucket/refs/heads/main/breakdown/m01/m01-mouth-smile00.webp",
                        },
                    ],
                },
            ],
        };
        ```
      </CodeBlockTab>
    </CodeBlockTabs>

    <PixiVnExample path="canvas/pinchin-transition" />
  </Accordion>
</Accordions>

## Custom functionality [#custom-functionality]

<Callout type="info">
  The Pixi’VN Team welcomes new proposals and contributions to make this library even more complete. Feel free to share or propose your transition in the chat below!
</Callout>

Creating your own transition is simple: use <DynamicLink href="/start/canvas-motion">`canvas.animate`</DynamicLink> to define custom effects.

To help you get started, here is a simplified version of [`transitions.showWithDissolve`](/jsdoc/pixi-vn/index/namespaces/transitions/functions/showWithDissolve):

```ts title="canvas/transitions/showWithDissolve.ts"
import { canvas, ImageSprite, UPDATE_PRIORITY } from "@drincs/pixi-vn";
import { AnimationOptions } from "@drincs/pixi-vn/motion";

export default async function showWithDissolve(
    alias: string,
    component: ImageSprite,
    props: AnimationOptions = {},
    priority?: UPDATE_PRIORITY,
): Promise<string[] | undefined> {
    let { completeOnContinue = true, ...options } = props;
    // add the new component
    canvas.add(alias, component);
    // edit the properties of the new component
    component.alpha = 0;
    // create the ticker and play it
    let id = canvas.animate(
        alias,
        {
            alpha: 1,
        },
        {
            ...options,
            completeOnContinue,
        },
        priority,
    );
    // load the image if the image is not loaded
    if (component.haveEmptyTexture) {
        await component.load();
    }
    // return the ids of the tickers
    if (id) {
        return [id];
    }
}
```

<Accordions>
  <Accordion title="Using filters" id="using-filters">
    `canvas.animate` (above) animates a canvas component's own properties - `alpha`, position, scale, and
    so on. Some effects (blur, pixelate, glow, color grading, ...) instead need to animate a PixiJS
    <DynamicLink href="/start/canvas-filters">`Filter`</DynamicLink>'s own properties over time - that's
    what `filters.animate` (from `@drincs/pixi-vn/filters`) is for. **This functionality is available
    starting from v1.9.4.** It's the same mechanism `transitions.blurIn`/`blurOut`/`pixelateIn`/`pixelateOut`
    use internally.

    `filters.animate` mirrors `canvas.animate`'s `(alias, keyframes, options, priority)` shape, with the
    `Filter` instance to animate inserted as the second argument. You're responsible for attaching the
    filter to the component before starting the animation, and detaching (and destroying) it once the
    animation completes, via the `cleanup` callback:

    ```ts title="canvas/transitions/blurIn.ts"
    import { canvas, ImageSprite, UPDATE_PRIORITY } from "@drincs/pixi-vn";
    import { filters } from "@drincs/pixi-vn/filters";
    import { AnimationOptions } from "@drincs/pixi-vn/motion";

    export default async function blurIn(
        alias: string,
        component: ImageSprite,
        props: AnimationOptions & { strength?: number } = {},
        priority?: UPDATE_PRIORITY,
    ): Promise<string[] | undefined> {
        let { strength = 32, completeOnContinue = true, ...options } = props;
        // add the new component
        canvas.add(alias, component);
        // create the filter and attach it to the component
        const filter = new filters.BlurFilter({ strength });
        component.filters = [filter];
        // animate the filter's own `strength` property down to 0
        let id = filters.animate(
            alias,
            filter,
            {
                strength: [strength, 0],
            },
            {
                ...options,
                completeOnContinue,
            },
            priority,
            undefined,
            // cleanup: runs once the animation completes - detach and destroy the filter
            () => {
                component.filters = null;
                filter.destroy();
            },
        );
        // load the image if the image is not loaded
        if (component.haveEmptyTexture) {
            await component.load();
        }
        // return the ids of the tickers
        if (id) {
            return [id];
        }
    }
    ```

    `filters.animate` can also drive a plain numeric progress value instead of a `Filter`'s own property -
    pass `undefined` as the filter and an `apply` callback (called every frame with the interpolated
    value) in its place. This is how `transitions.wipeIn`/`irisIn`/`splitIn` animate their mask geometry
    (a growing radius, a moving boundary, ...), since a mask has no filter property to write directly.

    The <DynamicLink href="/start/canvas-filters">Filters</DynamicLink> page covers every filter Pixi’VN
    registers out of the box, plus how to make a custom filter save-compatible.
  </Accordion>
</Accordions>

### Replace or remove the previous component [#replace-or-remove-the-previous-component]

If a component with the same alias already exists, you can let it be replaced, or:

<Accordions>
  <Accordion title="Remove the previous component after completion" id="remove-the-previous-component-after-completion">
    To remove the previous component when the new component's transition is complete, use the <DynamicLink href="/start/canvas-motion">`aliasToRemoveAfter` property</DynamicLink>.

    ```ts title="canvas/transitions/showWithDissolve.ts"
    import { canvas, ImageSprite, tickers, UPDATE_PRIORITY } from "@drincs/pixi-vn";
    import { AnimationOptions } from "@drincs/pixi-vn/motion";

    export default async function showWithDissolve(
        alias: string,
        component: ImageSprite,
        props: AnimationOptions = {},
        priority?: UPDATE_PRIORITY,
    ): Promise<string[] | undefined> {
        let { completeOnContinue = true, ...options } = props;
        // check if the alias is already exist // [!code ++]
        let oldComponentAlias: string | undefined = undefined; // [!code ++]
        let oldComponent = canvas.find(alias); // [!code ++]
        if (oldComponent) {
            // [!code ++]
            oldComponentAlias = alias + "_temp_disolve"; // [!code ++]
            canvas.editAlias(alias, oldComponentAlias); // [!code ++]
        } // [!code ++]
        // add the new component and transfer the properties of the old component to the new component
        canvas.add(alias, component);
        oldComponent?.parent?.setChildIndex(
            oldComponent,
            oldComponent.parent.getChildIndex(oldComponent) - 0.1,
        ); // [!code ++]
        oldComponentAlias &&
            canvas.copyCanvasElementProperty(oldComponentAlias, alias); // [!code ++]
        oldComponentAlias &&
            tickers.transfer(oldComponentAlias, alias, "duplicate"); // [!code ++]
        // edit the properties of the new component
        component.alpha = 0;
        // create the ticker and play it
        let id = canvas.animate(
            alias,
            {
                alpha: 1,
            },
            {
                ...options,
                completeOnContinue,
            },
            priority,
        );
        // load the image if the image is not loaded
        if (component.haveEmptyTexture) {
            await component.load();
        }
        // return the ids of the tickers
        if (id) {
            return [id];
        }
    }
    ```
  </Accordion>

  <Accordion title="Remove the previous component with a transition" id="remove-the-previous-component-with-a-transition">
    To remove the previous component with a transition, run another animation with <DynamicLink href="/start/canvas-motion">`canvas.animate`</DynamicLink> and use the <DynamicLink href="/start/canvas-motion">`tickerIdToResume` property</DynamicLink>.

    ```ts title="canvas/transitions/showWithFade.ts"
    import { canvas, ImageSprite, tickers, UPDATE_PRIORITY } from "@drincs/pixi-vn";
    import { AnimationOptions } from "@drincs/pixi-vn/motion";

    export default async function showWithDissolve(
        alias: string,
        component: ImageSprite,
        props: AnimationOptions = {},
        priority?: UPDATE_PRIORITY,
    ): Promise<string[] | undefined> {
        let { completeOnContinue = true, ...options } = props;
        // check if the alias is already exist // [!code ++]
        let oldComponentAlias: string | undefined = undefined; // [!code ++]
        let oldComponent = canvas.find(alias); // [!code ++]
        if (oldComponent) {
            // [!code ++]
            return showWithDissolve(alias, component, props, priority); // [!code ++]
        } // [!code ++]
        let oldComponentAlias = alias + "_temp_fade"; // [!code ++]
        canvas.editAlias(alias, oldComponentAlias); // [!code ++]
        // add the new component and transfer the properties of the old component to the new component // [!code ++]
        canvas.add(alias, component);
        oldComponent?.parent?.setChildIndex(
            oldComponent,
            oldComponent.parent.getChildIndex(oldComponent) - 0.1,
        ); // [!code ++]
        oldComponentAlias &&
            canvas.copyCanvasElementProperty(oldComponentAlias, alias); // [!code ++]
        oldComponentAlias &&
            tickers.transfer(oldComponentAlias, alias, "duplicate"); // [!code ++]
        // edit the properties of the new component
        component.alpha = 0;
        // create the ticker and play it
        let id = canvas.animate(
            alias,
            {
                alpha: 1,
            },
            {
                ...options,
                completeOnContinue,
            },
            priority,
        );
        if (id) {
            // [!code ++]
            // pause the ticker // [!code ++]
            tickers.pause({ id: id }); // [!code ++]
            // remove the old component // [!code ++]
            canvas.animate(
                // [!code ++]
                alias, // [!code ++]
                {
                    // [!code ++]
                    alpha: 0, // [!code ++]
                }, // [!code ++]
                {
                    // [!code ++]
                    ...options, // [!code ++]
                    tickerIdToResume: id, // [!code ++]
                    aliasToRemoveAfter: oldComponentAlias, // [!code ++]
                    completeOnContinue, // [!code ++]
                }, // [!code ++]
                priority, // [!code ++]
            ); // [!code ++]
        } // [!code ++]
        // load the image if the image is not loaded
        if (component.haveEmptyTexture) {
            await component.load();
        }
        // return the ids of the tickers
        if (id) {
            return [id];
        }
    }
    ```
  </Accordion>
</Accordions>
