Original bird artwork and code: Back to the 90s. Four frames of 48×48 in a 192×48 strip. Open index.html. The full JavaScript also appears separately as pet.js for reading; index.html embeds its own copy. Edit either the inline script for this example or use pet.js when integrating into another page. Starts paused, limits animation to its own strip, stops when hidden or reduced-motion preference turns on.
