ProjectGenesis commited on
Commit
61b4449
·
verified ·
1 Parent(s): 72e6631

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 +37 -25
index.html CHANGED
@@ -34,7 +34,6 @@
34
  * {
35
  font-family: 'Rajdhani', sans-serif;
36
  }
37
-
38
  body {
39
  background: radial-gradient(circle at center, #0a0a0a 0%, #1a0d00 40%, #2e1300 70%, #000000 100%);
40
  min-height: 100vh;
@@ -42,7 +41,12 @@
42
  overflow-x: hidden;
43
  }
44
 
45
- .glass-card {
 
 
 
 
 
46
  backdrop-filter: blur(16px);
47
  background: rgba(255, 255, 255, 0.05);
48
  border: 1px solid rgba(255, 255, 255, 0.15);
@@ -75,12 +79,11 @@
75
  0% { left: -150%; }
76
  100% { left: 150%; }
77
  }
78
-
79
  .neon-btn {
80
  backdrop-filter: blur(10px);
81
  background: rgba(0, 0, 0, 0.3);
82
- border: 1px solid #FFA500;
83
- border-radius: 10px;
84
  color: #FFD700;
85
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
86
  transition: all 0.3s ease;
@@ -91,27 +94,36 @@
91
  }
92
 
93
  .neon-btn::before {
94
- content: '';
 
95
  position: absolute;
96
- top: 0;
97
- left: -100%;
98
- width: 100%;
99
- height: 100%;
100
- background: linear-gradient(90deg, transparent, rgba(255, 165, 0, 0.2), transparent);
101
- transition: all 0.6s ease;
 
 
 
 
 
 
 
 
102
  z-index: -1;
103
  }
 
 
 
 
 
104
 
105
  .neon-btn:hover {
106
  transform: scale(1.05);
107
  box-shadow: 0 0 15px 3px rgba(255, 165, 0, 0.5);
108
  }
109
-
110
- .neon-btn:hover::before {
111
- left: 100%;
112
- }
113
-
114
- .progress-track {
115
  height: 16px;
116
  background: rgba(255, 255, 255, 0.1);
117
  border-radius: 10px;
@@ -632,7 +644,7 @@
632
  <div class="flex justify-between items-center mb-6">
633
  <h2 class="text-2xl font-bold uppercase">VIP Perks</h2>
634
  <button class="neon-btn py-2 px-5 uppercase font-semibold flex items-center gap-2">
635
- View Full Chart <i class="fas fa-arrow-right"></i>
636
  </button>
637
  </div>
638
 
@@ -642,8 +654,8 @@
642
  <div class="perk-icon">
643
  <i class="fas fa-credit-card text-3xl text-neon-yellow"></i>
644
  </div>
645
- <h3 class="text-lg font-semibold mt-3 text-center">Cashback</h3>
646
- <span class="text-xs text-neon-orange text-center">20% weekly</span>
647
  </div>
648
 
649
  <!-- Perk 2 -->
@@ -651,7 +663,7 @@
651
  <div class="perk-icon">
652
  <i class="fas fa-user-tie text-3xl text-neon-yellow"></i>
653
  </div>
654
- <h3 class="text-lg font-semibold mt-3 text-center">VIP Manager</h3>
655
  <span class="text-xs text-neon-orange text-center">24/7 Support</span>
656
  </div>
657
 
@@ -672,7 +684,7 @@
672
  <i class="fas fa-lock"></i>
673
  </div>
674
  </div>
675
- <h3 class="text-lg font-semibold mt-3 text-center">Exclusive Events</h3>
676
  <span class="text-xs text-gray-400 text-center">Unlocks at Ruby Tier</span>
677
  </div>
678
 
@@ -685,7 +697,7 @@
685
  <h2 class="text-2xl font-bold uppercase">Claimable Rewards</h2>
686
  <div class="flex items-center gap-2 text-sm">
687
  <i class="fas fa-sync text-neon-orange"></i>
688
- <span>Resets in:</span>
689
  </div>
690
  </div>
691
 
@@ -729,7 +741,7 @@
729
  <div class="glass-card p-6 flex flex-col items-center text-center">
730
  <i class="fas fa-user-friends text-4xl text-neon-yellow mb-3"></i>
731
  <h2 class="text-xl font-bold uppercase mb-2">Invite Friends</h2>
732
- <p class="opacity-90 mb-4 text-sm">Invite friends to earn 5% of their XP gains and exclusive bonuses for both of you</p>
733
  <button class="neon-btn py-2 px-8 uppercase font-bold">Invite Now</button>
734
  </div>
735
  </section>
 
34
  * {
35
  font-family: 'Rajdhani', sans-serif;
36
  }
 
37
  body {
38
  background: radial-gradient(circle at center, #0a0a0a 0%, #1a0d00 40%, #2e1300 70%, #000000 100%);
39
  min-height: 100vh;
 
41
  overflow-x: hidden;
42
  }
43
 
44
+ @property --a {
45
+ syntax: '<angle>';
46
+ inherits: false;
47
+ initial-value: 0turn;
48
+ }
49
+ .glass-card {
50
  backdrop-filter: blur(16px);
51
  background: rgba(255, 255, 255, 0.05);
52
  border: 1px solid rgba(255, 255, 255, 0.15);
 
79
  0% { left: -150%; }
80
  100% { left: 150%; }
81
  }
 
82
  .neon-btn {
83
  backdrop-filter: blur(10px);
84
  background: rgba(0, 0, 0, 0.3);
85
+ border: none;
86
+ border-radius: 9999px;
87
  color: #FFD700;
88
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
89
  transition: all 0.3s ease;
 
94
  }
95
 
96
  .neon-btn::before {
97
+ --a: 0turn;
98
+ content: "";
99
  position: absolute;
100
+ inset: 0;
101
+ border-radius: 9999px;
102
+ padding: 3px;
103
+ background: conic-gradient(from var(--a),
104
+ rgba(255,0,0,.9),
105
+ rgba(255,165,0,.9),
106
+ rgba(255,255,0,.9),
107
+ rgba(0,255,255,.9),
108
+ rgba(128,0,128,.9),
109
+ rgba(255,0,0,.9));
110
+ animation: border-spin 3s linear infinite;
111
+ -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
112
+ -webkit-mask-composite: xor;
113
+ mask-composite: exclude;
114
  z-index: -1;
115
  }
116
+
117
+ @keyframes border-spin {
118
+ 0% { --a: 0turn; }
119
+ 100% { --a: 1turn; }
120
+ }
121
 
122
  .neon-btn:hover {
123
  transform: scale(1.05);
124
  box-shadow: 0 0 15px 3px rgba(255, 165, 0, 0.5);
125
  }
126
+ .progress-track {
 
 
 
 
 
127
  height: 16px;
128
  background: rgba(255, 255, 255, 0.1);
129
  border-radius: 10px;
 
644
  <div class="flex justify-between items-center mb-6">
645
  <h2 class="text-2xl font-bold uppercase">VIP Perks</h2>
646
  <button class="neon-btn py-2 px-5 uppercase font-semibold flex items-center gap-2">
647
+ View All Perks <i class="fas fa-arrow-right"></i>
648
  </button>
649
  </div>
650
 
 
654
  <div class="perk-icon">
655
  <i class="fas fa-credit-card text-3xl text-neon-yellow"></i>
656
  </div>
657
+ <h3 class="text-lg font-semibold mt-3 text-center">Rakeback</h3>
658
+ <span class="text-xs text-neon-orange text-center">2% weekly</span>
659
  </div>
660
 
661
  <!-- Perk 2 -->
 
663
  <div class="perk-icon">
664
  <i class="fas fa-user-tie text-3xl text-neon-yellow"></i>
665
  </div>
666
+ <h3 class="text-lg font-semibold mt-3 text-center">Dedicated Manager</h3>
667
  <span class="text-xs text-neon-orange text-center">24/7 Support</span>
668
  </div>
669
 
 
684
  <i class="fas fa-lock"></i>
685
  </div>
686
  </div>
687
+ <h3 class="text-lg font-semibold mt-3 text-center">Exclusive Giveaways</h3>
688
  <span class="text-xs text-gray-400 text-center">Unlocks at Ruby Tier</span>
689
  </div>
690
 
 
697
  <h2 class="text-2xl font-bold uppercase">Claimable Rewards</h2>
698
  <div class="flex items-center gap-2 text-sm">
699
  <i class="fas fa-sync text-neon-orange"></i>
700
+ <span>Resets in: 21:25:12</span>
701
  </div>
702
  </div>
703
 
 
741
  <div class="glass-card p-6 flex flex-col items-center text-center">
742
  <i class="fas fa-user-friends text-4xl text-neon-yellow mb-3"></i>
743
  <h2 class="text-xl font-bold uppercase mb-2">Invite Friends</h2>
744
+ <p class="opacity-90 mb-4 text-sm">Invite friends to share the wealth and earn exclusive bonuses for both of you</p>
745
  <button class="neon-btn py-2 px-8 uppercase font-bold">Invite Now</button>
746
  </div>
747
  </section>