ProjectGenesis commited on
Commit
eefb99d
·
verified ·
1 Parent(s): ecf1df4

Apply this button border trail animation for all buttons.

Browse files

.neon-button::before {
--a: 0turn;
content: "";
position: absolute;
inset: 0;
border-radius: 9999px;
padding: 3px; /* Border thickness */
background: conic-gradient(from var(--a),
rgba(255,0,0,.9),
rgba(255,165,0,.9),
rgba(255,255,0,.9),
rgba(0,255,255,.9),
rgba(128,0,128,.9),
rgba(255,0,0,.9));
animation: border-spin 3s linear infinite;
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
z-index: -1;

Files changed (1) hide show
  1. index.html +35 -42
index.html CHANGED
@@ -69,15 +69,24 @@
69
  z-index: 1;
70
  }
71
  .pill-button::before {
 
72
  content: "";
73
  position: absolute;
74
- top: 0;
75
- left: 0;
76
- width: 200%;
77
- height: 100%;
78
- background: conic-gradient(transparent, #FF6A00, #00E4FF, transparent);
 
 
 
 
 
 
 
 
 
79
  z-index: -1;
80
- animation: border-trail 2.5s linear infinite;
81
  }
82
  .pill-button::after {
83
  content: "";
@@ -87,10 +96,14 @@
87
  right: 2px;
88
  bottom: 2px;
89
  background: rgba(30, 30, 30, 0.9);
90
- border-radius: 100px;
91
  z-index: -1;
92
  }
93
- .pill-button:hover {
 
 
 
 
94
  box-shadow: 0 0 10px 2px;
95
  }
96
  .pill-button-primary {
@@ -169,11 +182,7 @@
169
  .accordion[aria-expanded="true"] .accordion-content {
170
  max-height: 500px;
171
  }
172
- @keyframes border-trail {
173
- 0% { transform: translateX(-50%) rotate(0deg); }
174
- 100% { transform: translateX(-50%) rotate(360deg); }
175
- }
176
- @keyframes glow {
177
  0% { box-shadow: 0 0 0px 0px rgba(255, 106, 0, 0.6); }
178
  50% { box-shadow: 0 0 10px 3px rgba(255, 106, 0, 0.8); }
179
  100% { box-shadow: 0 0 0px 0px rgba(255, 106, 0, 0.6); }
@@ -224,28 +233,12 @@
224
  </p>
225
 
226
  <div class="flex flex-wrap justify-center gap-4 mb-12">
227
- <button id="btn-deposit" class="pill-button pill-button-primary px-8 py-3 text-lg">
228
- <span>Purchase SC</span>
229
  </button>
230
- <button id="btn-withdraw" class="pill-button pill-button-secondary px-8 py-3 text-lg">
231
- <span>Redeem Now</span>
232
  </button>
233
- </div>
234
-
235
- <div class="grid grid-cols-3 gap-6 w-full max-w-2xl">
236
- <div class="flex flex-col items-center">
237
- <div class="text-3xl font-bold font-['Orbitron'] text-[#FFD600]">100%</div>
238
- <div class="text-sm text-[#B8B8B8]">Secure</div>
239
- </div>
240
- <div class="flex flex-col items-center">
241
- <div class="text-3xl font-bold font-['Orbitron'] text-[#00E4FF]">24/7</div>
242
- <div class="text-sm text-[#B8B8B8]">Support</div>
243
- </div>
244
- <div class="flex flex-col items-center">
245
- <div class="text-3xl font-bold font-['Orbitron'] text-[#3CE27A]">Instant</div>
246
- <div class="text-sm text-[#B8B8B8]">Transactions</div>
247
- </div>
248
- </div>
249
  </div>
250
 
251
  <div class="absolute -bottom-20 left-0 right-0 h-40 bg-gradient-to-t from-[#0a0a0a] to-transparent z-10"></div>
@@ -260,11 +253,11 @@
260
  <div class="max-w-7xl mx-auto px-4 md:px-8 py-8 md:py-10">
261
  <!-- Sticky CTA bar for mobile -->
262
  <div class="sticky-cta-bar flex justify-center gap-3 md:hidden mb-6">
263
- <button class="pill-button pill-button-primary">
264
- <span>Deposit SC</span>
265
  </button>
266
- <button class="pill-button pill-button-secondary">
267
- <span>Withdraw</span>
268
  </button>
269
  </div>
270
 
@@ -353,9 +346,9 @@
353
  </div>
354
 
355
  <div class="flex flex-wrap gap-3">
356
- <button class="pill-button pill-button-secondary bg-[rgba(0,228,255,0.15)]">Redeem Balance</button>
357
- <button id="btn-convert" class="pill-button pill-button-primary">Payment Method</button>
358
- <button class="flex items-center gap-2 px-4 py-2 rounded-full border border-[rgba(255,255,255,0.15)] hover:border-[#FF6A00] transition">
359
  <span>View Withdrawal History</span>
360
  <i data-feather="chevron-right" class="w-4 h-4"></i>
361
  </button>
@@ -468,8 +461,8 @@
468
  </div>
469
  <h4 class="font-medium mb-2">No transactions yet</h4>
470
  <p class="text-[#B8B8B8] mb-6">Top up your wallet to get started</p>
471
- <button class="pill-button pill-button-primary px-6">Claim Your First Purchase Package</button>
472
- </div>
473
  </td>
474
  </tr>
475
  </tbody>
 
69
  z-index: 1;
70
  }
71
  .pill-button::before {
72
+ --a: 0turn;
73
  content: "";
74
  position: absolute;
75
+ inset: 0;
76
+ border-radius: 9999px;
77
+ padding: 2px;
78
+ background: conic-gradient(from var(--a),
79
+ rgba(255,0,0,.9),
80
+ rgba(255,165,0,.9),
81
+ rgba(255,255,0,.9),
82
+ rgba(0,255,255,.9),
83
+ rgba(128,0,128,.9),
84
+ rgba(255,0,0,.9));
85
+ animation: border-spin 3s linear infinite;
86
+ -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
87
+ -webkit-mask-composite: xor;
88
+ mask-composite: exclude;
89
  z-index: -1;
 
90
  }
91
  .pill-button::after {
92
  content: "";
 
96
  right: 2px;
97
  bottom: 2px;
98
  background: rgba(30, 30, 30, 0.9);
99
+ border-radius: 9999px;
100
  z-index: -1;
101
  }
102
+ @keyframes border-spin {
103
+ 0% { --a: 0turn; }
104
+ 100% { --a: 1turn; }
105
+ }
106
+ .pill-button:hover {
107
  box-shadow: 0 0 10px 2px;
108
  }
109
  .pill-button-primary {
 
182
  .accordion[aria-expanded="true"] .accordion-content {
183
  max-height: 500px;
184
  }
185
+ @keyframes glow {
 
 
 
 
186
  0% { box-shadow: 0 0 0px 0px rgba(255, 106, 0, 0.6); }
187
  50% { box-shadow: 0 0 10px 3px rgba(255, 106, 0, 0.8); }
188
  100% { box-shadow: 0 0 0px 0px rgba(255, 106, 0, 0.6); }
 
233
  </p>
234
 
235
  <div class="flex flex-wrap justify-center gap-4 mb-12">
236
+ <button id="btn-deposit" class="pill-button pill-button-primary px-8 py-3 text-lg neon-button">
237
+ <span>Purchase SC</span>
238
  </button>
239
+ <button id="btn-withdraw" class="pill-button pill-button-secondary px-8 py-3 text-lg neon-button">
240
+ <span>Redeem Now</span>
241
  </button>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
242
  </div>
243
 
244
  <div class="absolute -bottom-20 left-0 right-0 h-40 bg-gradient-to-t from-[#0a0a0a] to-transparent z-10"></div>
 
253
  <div class="max-w-7xl mx-auto px-4 md:px-8 py-8 md:py-10">
254
  <!-- Sticky CTA bar for mobile -->
255
  <div class="sticky-cta-bar flex justify-center gap-3 md:hidden mb-6">
256
+ <button class="pill-button pill-button-primary neon-button">
257
+ <span>Deposit SC</span>
258
  </button>
259
+ <button class="pill-button pill-button-secondary neon-button">
260
+ <span>Withdraw</span>
261
  </button>
262
  </div>
263
 
 
346
  </div>
347
 
348
  <div class="flex flex-wrap gap-3">
349
+ <button class="pill-button pill-button-secondary bg-[rgba(0,228,255,0.15)] neon-button">Redeem Balance</button>
350
+ <button id="btn-convert" class="pill-button pill-button-primary neon-button">Payment Method</button>
351
+ <button class="flex items-center gap-2 px-4 py-2 rounded-full border border-[rgba(255,255,255,0.15)] hover:border-[#FF6A00] transition">
352
  <span>View Withdrawal History</span>
353
  <i data-feather="chevron-right" class="w-4 h-4"></i>
354
  </button>
 
461
  </div>
462
  <h4 class="font-medium mb-2">No transactions yet</h4>
463
  <p class="text-[#B8B8B8] mb-6">Top up your wallet to get started</p>
464
+ <button class="pill-button pill-button-primary px-6 neon-button">Claim Your First Purchase Package</button>
465
+ </div>
466
  </td>
467
  </tr>
468
  </tbody>