Spaces:
Running
Running
Update src/components/control-tray/control-tray.scss
Browse files
src/components/control-tray/control-tray.scss
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
|
|
|
|
|
| 1 |
.action-button {
|
| 2 |
display: flex;
|
| 3 |
align-items: center;
|
|
@@ -174,10 +176,9 @@
|
|
| 174 |
align-items: center;
|
| 175 |
overflow: clip;
|
| 176 |
padding: 10px;
|
| 177 |
-
|
| 178 |
transition: all 0.6s ease-in;
|
| 179 |
|
| 180 |
-
|
| 181 |
display: flex;
|
| 182 |
align-items: center;
|
| 183 |
flex-direction: column;
|
|
@@ -186,26 +187,35 @@
|
|
| 186 |
}
|
| 187 |
|
| 188 |
@keyframes opacity-pulse {
|
| 189 |
-
0% {
|
| 190 |
-
|
| 191 |
-
}
|
|
|
|
| 192 |
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
}
|
|
|
|
| 196 |
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
|
|
|
|
|
|
| 200 |
}
|
| 201 |
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
transform:
|
|
|
|
| 206 |
}
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
}
|
| 211 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// src/components/control-tray/control-tray.scss
|
| 2 |
+
|
| 3 |
.action-button {
|
| 4 |
display: flex;
|
| 5 |
align-items: center;
|
|
|
|
| 176 |
align-items: center;
|
| 177 |
overflow: clip;
|
| 178 |
padding: 10px;
|
|
|
|
| 179 |
transition: all 0.6s ease-in;
|
| 180 |
|
| 181 |
+
& > * {
|
| 182 |
display: flex;
|
| 183 |
align-items: center;
|
| 184 |
flex-direction: column;
|
|
|
|
| 187 |
}
|
| 188 |
|
| 189 |
@keyframes opacity-pulse {
|
| 190 |
+
0% { opacity: 0.9; }
|
| 191 |
+
50% { opacity: 1; }
|
| 192 |
+
100% { opacity: 0.9; }
|
| 193 |
+
}
|
| 194 |
|
| 195 |
+
@keyframes fadeIn {
|
| 196 |
+
from { opacity: 0; transform: translate(-50%, 10px); }
|
| 197 |
+
to { opacity: 1; transform: translate(-50%, 0); }
|
| 198 |
+
}
|
| 199 |
|
| 200 |
+
/* --- 👇 کدهای جدید انیمیشن 👇 --- */
|
| 201 |
+
/* انیمیشن برای موج صدای ربات (که روی لوگوی بزرگ اعمال میشود) */
|
| 202 |
+
.ai-speaking-ripple {
|
| 203 |
+
transform: scale(var(--ai-voice-scale, 1));
|
| 204 |
+
transition: transform 0.15s ease-out;
|
| 205 |
}
|
| 206 |
|
| 207 |
+
/* انیمیشن برای دکمه وسط هنگام صحبت کاربر */
|
| 208 |
+
@keyframes user-speaking-pulse-animation {
|
| 209 |
+
0%, 100% {
|
| 210 |
+
transform: scale(1);
|
| 211 |
+
filter: brightness(100%);
|
| 212 |
}
|
| 213 |
+
50% {
|
| 214 |
+
transform: scale(1.05);
|
| 215 |
+
filter: brightness(110%);
|
| 216 |
}
|
| 217 |
}
|
| 218 |
+
|
| 219 |
+
.user-is-speaking-pulse {
|
| 220 |
+
animation: user-speaking-pulse-animation 1.5s infinite ease-in-out;
|
| 221 |
+
}
|