Components/Duos/Wick & Dusty

Wick & Dusty

A shy candle and the moth who loves her a little too much. One tag brings both of them.

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

<h2>
  …
  <piix-pal pal="wick"></piix-pal>
</h2>
Options
at
where Wick stands, 0–1
poke Wick
blushes, and draws him in
poke Dusty
flutters back out

How it plays

  1. Dusty circles her flame, a little closer every lap.
  2. Wick blushes and her flame flickers.
  3. Too close: he blows her out, and sulks beside her.
  4. She lights up again, and he starts over.

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