Morel & Ribb
A mushroom wizard practising spells on a frog who did not volunteer. One tag brings both of them.
Morel & Ribb
<!-- once, anywhere on the page --> <script src="https://cdn.jsdelivr.net/npm/piixpal@0.4/piixpal.min.js"></script> <h2> … <piix-pal pal="morel"></piix-pal> </h2>
<!-- just morel (the shared engine loads itself, once) --> <script src="https://cdn.jsdelivr.net/npm/piixpal@0.4/dist/c/morel.min.js"></script> <h2> … <piix-pal pal="morel"></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/morel.min.js" data-pals="morel@h2"></script>
await import("https://cdn.jsdelivr.net/npm/piixpal@0.4/dist/c/morel.min.js");
Piixpal.add("morel", "h2");
// npm install piixpal
import { PiixPal } from "piixpal/react";
<h1>
Hello
<PiixPal pal="morel" />
</h1>
npx shadcn@latest add https://piixpal.dvkk.dev/r/morel.json
import { Morel } from "@/components/piixpal/morel";
<h1>
Hello
<Morel />
</h1>
// main.js: app.use(Piixpal) from "piixpal/vue" <h1> Hello <piix-pal pal="morel" /> </h1>
<script>import Piixpal from "piixpal/svelte";</script> <Piixpal /> <h1>Hello <piix-pal pal="morel"></piix-pal></h1>
Options
at- where Morel stands, 0–1
poke Morel- casts now
poke Ribb- complains
How it plays
- Morel waves his staff and a sparkle arcs across.
- Ribb turns tiny, giant, upside-down, ghostly, spinning or pink.
- Ribb is furious.
- It wears off. Morel tries again.
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".