From b5d1bc009c37fd0d43c2605ae7a6b32ee1a67a70 Mon Sep 17 00:00:00 2001 From: Naman Sood Date: Mon, 30 Jan 2023 20:56:30 -0500 Subject: [PATCH] disable canvas on reduced motion Signed-off-by: Naman Sood --- css/style.css | 5 +++++ css/style.scss | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/css/style.css b/css/style.css index f51b486..b347678 100644 --- a/css/style.css +++ b/css/style.css @@ -239,5 +239,10 @@ body.dark-mode .main a.contact-method p { opacity: 0; } } +@media (prefers-reduced-motion) { + canvas#bg { + display: none; + } +} /*# sourceMappingURL=style.css.map */ diff --git a/css/style.scss b/css/style.scss index 5a13aee..70ca7d6 100644 --- a/css/style.scss +++ b/css/style.scss @@ -270,3 +270,9 @@ body.dark-mode { 51% { opacity: 1; } 100% { opacity: 0; } } + +@media (prefers-reduced-motion) { + canvas#bg { + display: none; + } +}