From 82cd59ef05d1e94285a5961787a8c6630e7c48bb Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Mon, 19 Sep 2022 17:48:39 +0800 Subject: [PATCH] feat(templates): ability to disable animation effect in loading page (#161) --- .../ui-templates/templates/loading/index.html | 94 ++++++++++++++----- 1 file changed, 68 insertions(+), 26 deletions(-) diff --git a/packages/ui-templates/templates/loading/index.html b/packages/ui-templates/templates/loading/index.html index 276777165e..440235b52f 100644 --- a/packages/ui-templates/templates/loading/index.html +++ b/packages/ui-templates/templates/loading/index.html @@ -33,6 +33,17 @@ filter: blur(100px); opacity: 0.5; } + #animation-toggle { + position: fixed; + padding: 10px; + top: 0; + right: 0; + transition: opacity 0.4s ease-in; + opacity: 0; + } + #animation-toggle:hover { + opacity: 0.8; + } @keyframes gradient { 0% { background-position: 0 0; @@ -53,6 +64,10 @@ } } @media (prefers-color-scheme: dark) { + html, body { + color: white; + color-scheme: dark; + } #nuxtImageDigit3 { fill: #00DC82 !important; } @@ -66,24 +81,24 @@
+
@@ -92,23 +107,38 @@