Volt & the bolts
A robot with a magnet for a head. The bolts cannot resist. One tag brings both of them.
Volt & the bolts
<!-- once, anywhere on the page --> <script src="https://cdn.jsdelivr.net/npm/piixpal@0.4/piixpal.min.js"></script> <h2> … <piix-pal pal="volt"></piix-pal> </h2>
<!-- just volt (the shared engine loads itself, once) --> <script src="https://cdn.jsdelivr.net/npm/piixpal@0.4/dist/c/volt.min.js"></script> <h2> … <piix-pal pal="volt"></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/volt.min.js" data-pals="volt@h2"></script>
await import("https://cdn.jsdelivr.net/npm/piixpal@0.4/dist/c/volt.min.js");
Piixpal.add("volt", "h2");
// npm install piixpal
import { PiixPal } from "piixpal/react";
<h1>
Hello
<PiixPal pal="volt" />
</h1>
npx shadcn@latest add https://piixpal.dvkk.dev/r/volt.json
import { Volt } from "@/components/piixpal/volt";
<h1>
Hello
<Volt />
</h1>
// main.js: app.use(Piixpal) from "piixpal/vue" <h1> Hello <piix-pal pal="volt" /> </h1>
<script>import Piixpal from "piixpal/svelte";</script> <Piixpal /> <h1>Hello <piix-pal pal="volt"></piix-pal></h1>
Options
bolts- how many bolts, 1–6 (3)
poke Volt- shakes them off
poke a bolt- jumps
How it plays
- Volt strolls along your element.
- Any bolt he passes flies up and stacks on his head.
- With all of them on, he shakes them off.
- They scatter, and he starts collecting 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".