Minimal CSS play/pause gif

#code Default: Animation plays. Stops when clicked. Prefers reduced motion: Animation stopped. Plays when clicked. This works at least as far back as Netscape 7.2 from 2004. . gif input { position : absolute ; left : -9999 px ; } . gif input + img + img , . gif : checked + img { display : none ; } . gif : checked + img + img { display : inline ; } @ media ( prefers-reduced-motion : reduce ) { .…