Components/Duos/Spike & Tumble

Spike & Tumble

A cactus cowboy and the tumbleweed he will never quite catch. One tag brings both of them.

Spike & Tumble
<!-- once, anywhere on the page -->
<script src="https://cdn.jsdelivr.net/npm/piixpal@0.4/piixpal.min.js"></script>

<h2>
  …
  <piix-pal pal="spike"></piix-pal>
</h2>
Options
at
where Spike stands, 0–1
poke Spike
yee-haws
poke Tumble
squeaks

How it plays

  1. A tumbleweed rolls by.
  2. Spike lassos it.
  3. It drags him off his pot and across the element.
  4. He cheers anyway, walks home, and waits for the next one.

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".