Spaces:
Running
Running
Update src/components/logo/Logo.scss
Browse files
src/components/logo/Logo.scss
CHANGED
@@ -1,29 +1,27 @@
|
|
1 |
// src/components/logo/Logo.scss
|
2 |
|
3 |
-
// انیمیشن برای زمانی که کاربر صحبت میکند
|
4 |
@keyframes user-pulse-animation {
|
5 |
0%, 100% {
|
6 |
transform: scale(1);
|
7 |
-
opacity:
|
8 |
}
|
9 |
50% {
|
10 |
-
transform: scale(1.
|
11 |
-
opacity:
|
12 |
}
|
13 |
}
|
14 |
|
15 |
-
// این کلاس به کل SVG اعمال میشود
|
16 |
.user-speaking {
|
17 |
-
// و انیمیشن را روی بخش "انسان" اجرا میکند
|
18 |
.human-part {
|
|
|
19 |
animation: user-pulse-animation 1.5s infinite ease-in-out;
|
|
|
|
|
20 |
}
|
21 |
}
|
22 |
|
23 |
-
// انیمیشن برای موج صدای AI
|
24 |
-
// از یک متغیر CSS برای کنترل اندازه استفاده میکنیم
|
25 |
.ai-speaking-ripple {
|
26 |
-
// --ai-voice-scale
|
27 |
transform: scale(var(--ai-voice-scale, 1));
|
28 |
-
transition: transform 0.
|
29 |
}
|
|
|
1 |
// src/components/logo/Logo.scss
|
2 |
|
|
|
3 |
@keyframes user-pulse-animation {
|
4 |
0%, 100% {
|
5 |
transform: scale(1);
|
6 |
+
opacity: 0.8; // کمی محوتر در حالت عادی
|
7 |
}
|
8 |
50% {
|
9 |
+
transform: scale(1.1); // بزرگتر میشود
|
10 |
+
opacity: 1; // کاملا واضح
|
11 |
}
|
12 |
}
|
13 |
|
|
|
14 |
.user-speaking {
|
|
|
15 |
.human-part {
|
16 |
+
// انیمیشن را فقط روی بخش انسان اعمال میکنیم
|
17 |
animation: user-pulse-animation 1.5s infinite ease-in-out;
|
18 |
+
// مرکز چرخش را درست تنظیم میکنیم
|
19 |
+
transform-origin: center;
|
20 |
}
|
21 |
}
|
22 |
|
|
|
|
|
23 |
.ai-speaking-ripple {
|
24 |
+
// متغیر --ai-voice-scale از React میآید
|
25 |
transform: scale(var(--ai-voice-scale, 1));
|
26 |
+
transition: transform 0.15s ease-out; // transition نرمتر
|
27 |
}
|