From f8740c7aa10f6f37874eb85dd276cbd711e4548d Mon Sep 17 00:00:00 2001 From: Sugaryy_ <65258128+Sugaryyyy@users.noreply.github.com> Date: Sun, 28 May 2023 13:46:15 +0200 Subject: [PATCH] CSS: Added accessibility options (ty yukijoou <3) --- src/style.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/style.css b/src/style.css index dc7bc16..b6e74a3 100644 --- a/src/style.css +++ b/src/style.css @@ -29,12 +29,21 @@ a::before { left: 0; transform-origin: right; transform: scaleX(0); + opacity: 0%; transition: transform .3s ease-in-out; } +@media (prefers-reduced-motion) { + a::before { + transition: opacity .3s ease-in-out; + } +} + + a:hover::before { transform-origin: left; transform: scaleX(1); + opacity: 100%; } a:link {