Make a pixel pet web preview that respects reduced motion
Build a web pixel pet preview with a still poster, an explicit motion control and a test for reduced-motion settings.
Start with the frame you want people to see
Choose a still that represents the character even when the animation never plays. Set it at the same position and size as the animation so switching modes does not move the layout. If the pet also communicates task status, label that status separately. A resting pose cannot reliably tell a reader whether an operation has succeeded.
For a gallery card, start with a static poster and a clearly labelled play control. If you make the card animate automatically for some users, keep the still for visitors who ask for reduced motion. Use the CSS reduced-motion preference for CSS animations, and apply the same decision to any script-driven player. Turning off CSS animation will not stop an already-running GIF or video.
Test the visitor states instead of just the stylesheet
| Situation | What the preview should do |
|---|---|
| Page loads with reduced motion enabled | Show the poster without starting a loop |
| Visitor starts motion explicitly | Play the requested preview and expose a stop control |
| Visitor stops playback | Restore the same-size poster; keep keyboard focus stable |
| Artwork fails to load | Keep the card's name and status available |
For an example design, put a 32 × 32 pet in a 96 × 96 preview box. Keep the play control outside the artwork rather than layering it over the eyes. An illustrated poster looks intentional when it remains visible after a visitor stops motion.
Check the art and the control separately
Use the crisp PNG preview guide to test the static artwork. Then reload with reduced motion enabled and watch the whole card, including any hover or focus treatment. If motion starts after a script initializes, the poster was only a loading state; fix the player's starting decision. W3C's guidance covers when automatically moving content requires a way to pause, stop or hide it.
Who this is for
Use this for a website or gallery you control. Check the host's own motion settings when you export a pet to another application.