whatnames

help help i'm trapped in the comput

i followed 4,939 people on twit and i have NOT learned my lesson
i make games, theatre, AND A LOT OF NOISE
A gif of the Ghost Trick character Cabanela spinning into a spotlight


parked url for future personal website
whatnames.fyi

sapphicfettucine
@sapphicfettucine

you should make them accessible to folks who are motion sensitive!

steps:

  1. make a static version of your gif. i personally use imagemagick: convert 'button.gif[0]' button.static.gif
  2. use HTML to switch between both versions depending on the prefers-reduced-motion property:
<picture>
  <source srcset="[ANIMATED VERSION OF YOUR GIF]" media="(prefers-reduced-motion: no-preference)" />
  <img src="[STATIC VERSION OF YOUR GIF]" alt="[BUTTON ALT TEXT]" />
</picture>

trick copied from Accessible animated content without the compromise, on tempertemper.net


You must log in to comment.

in reply to @sapphicfettucine's post: