Spaces:
Running
Running
Change the border trail animation color to alternating neon yellow and white
Browse files- index.html +6 -10
index.html
CHANGED
|
@@ -92,7 +92,6 @@
|
|
| 92 |
overflow: hidden;
|
| 93 |
z-index: 1;
|
| 94 |
}
|
| 95 |
-
|
| 96 |
.neon-btn::before {
|
| 97 |
--a: 0turn;
|
| 98 |
content: "";
|
|
@@ -101,20 +100,17 @@
|
|
| 101 |
border-radius: 9999px;
|
| 102 |
padding: 3px;
|
| 103 |
background: conic-gradient(from var(--a),
|
| 104 |
-
rgba(255,
|
| 105 |
-
rgba(255,
|
| 106 |
-
rgba(255,255,
|
| 107 |
-
rgba(
|
| 108 |
-
|
| 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 |
}
|
|
|
|
| 92 |
overflow: hidden;
|
| 93 |
z-index: 1;
|
| 94 |
}
|
|
|
|
| 95 |
.neon-btn::before {
|
| 96 |
--a: 0turn;
|
| 97 |
content: "";
|
|
|
|
| 100 |
border-radius: 9999px;
|
| 101 |
padding: 3px;
|
| 102 |
background: conic-gradient(from var(--a),
|
| 103 |
+
rgba(255,255,255,.9),
|
| 104 |
+
rgba(255,215,0,.9),
|
| 105 |
+
rgba(255,255,255,.9),
|
| 106 |
+
rgba(255,215,0,.9));
|
| 107 |
+
animation: border-spin 1.5s linear infinite;
|
|
|
|
|
|
|
| 108 |
-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
|
| 109 |
-webkit-mask-composite: xor;
|
| 110 |
mask-composite: exclude;
|
| 111 |
z-index: -1;
|
| 112 |
}
|
| 113 |
+
@keyframes border-spin {
|
|
|
|
| 114 |
0% { --a: 0turn; }
|
| 115 |
100% { --a: 1turn; }
|
| 116 |
}
|