diff --git a/templates/assets/css/index.css b/templates/assets/css/index.css index 41286bf..45aa7a4 100644 --- a/templates/assets/css/index.css +++ b/templates/assets/css/index.css @@ -100,6 +100,8 @@ main { box-shadow: var(--glass-shadow); border: 1px solid var(--card-border); transition: transform 0.2s ease, box-shadow 0.2s ease; + animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; + opacity: 0; /* Start hidden for animation */ } .card:hover { @@ -254,6 +256,7 @@ main { border-radius: 8px; margin-bottom: 0.75rem; transition: border-color 0.2s ease; + animation: staggerFade 0.4s ease forwards; } .tx-item:hover { @@ -474,18 +477,21 @@ main { cursor: pointer; font-size: 0.95rem; font-weight: 500; - transition: all 0.2s ease; + transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); + position: relative; + overflow: hidden; } .tab-btn:hover { color: var(--text-primary); - background: rgba(255, 255, 255, 0.05); + background: rgba(255, 255, 255, 0.08); } .tab-btn.active { background: var(--primary-gradient); color: #ffffff; - box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3); + box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); + transform: translateY(-1px); } .tab-content { @@ -525,8 +531,8 @@ main { .search-box input:focus { outline: none; border-color: var(--accent-color); - box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2); - background: rgba(15, 23, 42, 0.8); + box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), 0 0 20px rgba(139, 92, 246, 0.2); + background: rgba(15, 23, 42, 0.9); } .search-box input::placeholder { @@ -701,3 +707,52 @@ a:hover { color: var(--text-secondary); font-style: italic; } + +/* New Animations */ +@keyframes slideUp { + from { + opacity: 0; + transform: translateY(20px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +@keyframes staggerFade { + from { + opacity: 0; + transform: translateX(-10px); + } + to { + opacity: 1; + transform: translateX(0); + } +} + +/* Apply animations */ +.card { + animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; + opacity: 0; /* Start hidden for animation */ +} + +.search-section .card { + animation-delay: 0.1s; +} + +.status-section .card:nth-child(1) { + animation-delay: 0.2s; +} + +.status-section .card:nth-child(2) { + animation-delay: 0.3s; +} + +.additional-section .card { + animation-delay: 0.4s; +} + +.tx-item { + animation: staggerFade 0.4s ease forwards; +} diff --git a/templates/index.html b/templates/index.html index 7591308..3831188 100644 --- a/templates/index.html +++ b/templates/index.html @@ -41,19 +41,6 @@
- -
-
-

Chain Info

-
Loading...
-
-
-

Mempool

-
Loading...
-
-
-
-
@@ -111,6 +98,19 @@
+ +
+
+

Chain Info

+
Loading...
+
+
+

Mempool

+
Loading...
+
+
+
+