Components/Duos/Luna & Pup

Luna & Pup

The moon rises over your element, and a wolf pup sings to her. One tag brings both of them.

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

<h2>
  …
  <piix-pal pal="luna"></piix-pal>
</h2>
Options
at
where the moon hangs, 0–1
poke Luna
blushes
poke Pup
howls

How it plays

  1. The moon rises softly above the element.
  2. Pup looks up and howls.
  3. Luna blushes and floats a little higher.
  4. She smiles when your cursor comes near.

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