diff options
author | ubq323 <ubq323@ubq323.website> | 2021-12-30 23:24:36 +0000 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2021-12-30 23:24:36 +0000 |
commit | 9117b72ccfc33ed951b3ed7d91d0a5d723907fb7 (patch) | |
tree | 709cdd156962a15631a2c624780e1fd1bb31779b | |
parent | 8508293d69281634e7e1d0ad45a4ea2da5d3f9ef (diff) |
disable canvas stuff if reduced motion is wanted
-rw-r--r-- | oldindex.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/oldindex.html b/oldindex.html index 48f9615..da4f857 100644 --- a/oldindex.html +++ b/oldindex.html @@ -135,7 +135,11 @@ a{color:cyan} } requestAnimationFrame(tick); } - tick(); + + let mm = matchMedia("(prefers-reduced-motion: reduce)").matches; + if (!mm) { + tick(); + } </script> </body> </html> |