From 1112d80fc4ebba66af78945c56424b05b86b0b96 Mon Sep 17 00:00:00 2001 From: Pyae Bhone Zaw Date: Fri, 20 Jun 2025 10:48:40 +0630 Subject: [PATCH] feat: add loading after qr click --- app/views/layouts/_read_modal.html.erb | 64 ++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/app/views/layouts/_read_modal.html.erb b/app/views/layouts/_read_modal.html.erb index 07cc6733..ca129a86 100644 --- a/app/views/layouts/_read_modal.html.erb +++ b/app/views/layouts/_read_modal.html.erb @@ -140,8 +140,62 @@ opacity: 0.6; cursor: not-allowed; } + + /* Loading Dot */ + .processing-indicator { + display: flex; + gap: 6px; + justify-content: center; + } + + .processing-dot { + width: 10px; + height: 10px; + background: #2196F3; + border-radius: 50%; + animation: bounce 1.4s infinite ease-in-out; + } + + .processing-dot:nth-child(2) { + animation-delay: 0.2s; + } + + .processing-dot:nth-child(3) { + animation-delay: 0.4s; + } + + @keyframes bounce { + 0%, 80%, 100% { + transform: translateY(0); + } + 40% { + transform: translateY(-12px); + } + } + + #fullpage-loading { + display: none; + position: fixed; + z-index: 9999; + top: 0; left: 0; + width: 100vw; height: 100vh; + background: rgba(0, 0, 0, 0.712); + align-items: center; + justify-content: center; + } + +