From fbe51e7e465b6f1cb187f6194a0d35e411f5542d Mon Sep 17 00:00:00 2001 From: Odyssey346 Date: Sun, 15 May 2022 10:36:44 +0200 Subject: [PATCH] Remove animation if you prefer reduced motion Signed-off-by: Odyssey346 --- src/lib/Header.svelte | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/Header.svelte b/src/lib/Header.svelte index 8e6d0ca..bf46083 100644 --- a/src/lib/Header.svelte +++ b/src/lib/Header.svelte @@ -55,14 +55,14 @@ display: inline-block; } .text-flicker-in-glow { - opacity:1; + opacity: 1; -webkit-animation: text-flicker-in-glow 3000ms both; animation: text-flicker-in-glow 3000ms both; } @media screen and (prefers-reduced-motion) { - .text-flicker-in-glow { - opacity:1; - -webkit-animation: text-flicker-in-glow 1000ms both; - animation: text-flicker-in-glow 1000ms both; } + .text-flicker-in-glow { + opacity: 1; + animation: none; + } }