From 9117b72ccfc33ed951b3ed7d91d0a5d723907fb7 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Thu, 30 Dec 2021 23:24:36 +0000 Subject: disable canvas stuff if reduced motion is wanted --- oldindex.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'oldindex.html') 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(); + } -- cgit v1.2.3