Ezmary commited on
Commit
9c74d4c
·
verified ·
1 Parent(s): b1850b7

Update src/components/logo/Logo.scss

Browse files
Files changed (1) hide show
  1. src/components/logo/Logo.scss +8 -10
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: 1;
8
  }
9
  50% {
10
- transform: scale(1.05);
11
- opacity: 0.9;
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 توسط کامپوننت React تنظیم می‌شود
27
  transform: scale(var(--ai-voice-scale, 1));
28
- transition: transform 0.2s ease-out;
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
  }