Interaction events

How your pet reacts to visitors without any code.

Built-in reactions

Without any extra code, an exported pet:

  • plays its idle move while it waits,
  • switches to its hover move when the pointer is over it,
  • plays walk right or walk left while visitors drag it in that direction,
  • can be moved with the keyboard once focused, and
  • tones down its speech-bubble animations for visitors who prefer reduced motion.

To react to your own page — a button click, a form step, a purchase — use the message API.

For working integration patterns and ideas, see Pet recipes.

Positioning

The pet starts in the corner you picked in the builder, at the scale you set. Visitors can drag it anywhere on the page.