From c86c709998eed1d1851ef9c000c626a32746cc54 Mon Sep 17 00:00:00 2001
From: Joe <33972521+hnb-ku@users.noreply.github.com>
Date: Thu, 30 Jun 2022 17:19:39 +0800
Subject: [PATCH] UX: Reduces splash animation delay (#17282)
This PR cuts down the delay before the splash screen is visible.
---
app/views/common/_discourse_splash.html.erb | 17 +++++++------
public/images/preloader.svg | 28 +++++++++++----------
2 files changed, 25 insertions(+), 20 deletions(-)
diff --git a/app/views/common/_discourse_splash.html.erb b/app/views/common/_discourse_splash.html.erb
index 08b92b65f53..40b1fb1f009 100644
--- a/app/views/common/_discourse_splash.html.erb
+++ b/app/views/common/_discourse_splash.html.erb
@@ -25,22 +25,25 @@
#d-splash .preloader-text {
padding-top: 4em;
- position: absolute;
- opacity: 0;
- animation: fade-in 0.5s ease-in-out;
- animation-delay: 2.5s;
- animation-fill-mode: forwards;
- color: var(--primary);
+ position: absolute;
+ opacity: 0;
+ animation: fade-in 0.5s ease-in-out;
+ animation-delay: 1.25s;
+ animation-fill-mode: forwards;
+ color: var(--primary);
}
#d-splash .preloader-text:after {
animation: loading-text 3s infinite;
content: "";
position: absolute;
+ top: 4em;
margin: 0 0.1em;
+ left: 100%;
}
.rtl #d-splash .preloader-text:after {
+ left: 0;
right: 100%;
}
@@ -71,7 +74,7 @@
diff --git a/public/images/preloader.svg b/public/images/preloader.svg
index b4101b4d679..867d619ef60 100644
--- a/public/images/preloader.svg
+++ b/public/images/preloader.svg
@@ -1,6 +1,9 @@
-