Parcel & the mailbox
A snail who delivers, at snail speed, to a very hungry mailbox. One tag brings both of them.
Parcel & the mailbox
<!-- once, anywhere on the page --> <script src="https://cdn.jsdelivr.net/npm/piixpal@0.4/piixpal.min.js"></script> <h2> … <piix-pal pal="parcel"></piix-pal> </h2>
<!-- just parcel (the shared engine loads itself, once) --> <script src="https://cdn.jsdelivr.net/npm/piixpal@0.4/dist/c/parcel.min.js"></script> <h2> … <piix-pal pal="parcel"></piix-pal> </h2>
<!-- attaches itself to the first h2: nothing else to add --> <script src="https://cdn.jsdelivr.net/npm/piixpal@0.4/dist/c/parcel.min.js" data-pals="parcel@h2"></script>
await import("https://cdn.jsdelivr.net/npm/piixpal@0.4/dist/c/parcel.min.js");
Piixpal.add("parcel", "h2");
// npm install piixpal
import { PiixPal } from "piixpal/react";
<h1>
Hello
<PiixPal pal="parcel" />
</h1>
npx shadcn@latest add https://piixpal.dvkk.dev/r/parcel.json
import { Parcel } from "@/components/piixpal/parcel";
<h1>
Hello
<Parcel />
</h1>
// main.js: app.use(Piixpal) from "piixpal/vue" <h1> Hello <piix-pal pal="parcel" /> </h1>
<script>import Piixpal from "piixpal/svelte";</script> <Piixpal /> <h1>Hello <piix-pal pal="parcel"></piix-pal></h1>
Options
poke Parcel- hurries (briefly)
poke the mailbox- eeps
How it plays
- Parcel crawls a letter all the way across.
- It flies into the mailbox.
- The mailbox eats it and burps a heart.
- Parcel crawls home for another.
It loops with a little randomness, never blocks a click, and stands still for people who prefer less motion. Put the tag inside the element they should live on, or point at one with on="selector".