Components/Duos/Parcel & the mailbox

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>
Options
poke Parcel
hurries (briefly)
poke the mailbox
eeps

How it plays

  1. Parcel crawls a letter all the way across.
  2. It flies into the mailbox.
  3. The mailbox eats it and burps a heart.
  4. 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".