|
4 | 4 | box-sizing: border-box; |
5 | 5 | } |
6 | 6 |
|
| 7 | +:root { |
| 8 | + --animation-speed: 1; |
| 9 | +} |
| 10 | + |
7 | 11 | body { |
8 | 12 | font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, |
9 | 13 | helvetica neue, Adwaita Sans, Cantarell, Ubuntu, roboto, noto, helvetica, |
@@ -67,30 +71,30 @@ body { |
67 | 71 | display: flex; |
68 | 72 | opacity: 0; |
69 | 73 | transform: translateY(20px); |
70 | | - animation: slideIn 0.6s ease-out forwards; |
| 74 | + animation: slideIn calc(0.6s * var(--animation-speed)) ease-out forwards; |
71 | 75 | align-items: flex-start; |
72 | 76 | gap: 0.75rem; |
73 | 77 | } |
74 | 78 |
|
75 | 79 | .chat-message.user { |
76 | 80 | flex-direction: row-reverse; |
77 | | - animation-delay: 0.5s; |
| 81 | + animation-delay: calc(0.5s * var(--animation-speed)); |
78 | 82 | } |
79 | 83 |
|
80 | 84 | .chat-message.ai { |
81 | 85 | flex-direction: row; |
82 | 86 | } |
83 | 87 |
|
84 | 88 | .chat-message:nth-child(2) { |
85 | | - animation-delay: 1.5s; |
| 89 | + animation-delay: calc(1.5s * var(--animation-speed)); |
86 | 90 | } |
87 | 91 |
|
88 | 92 | .chat-message:nth-child(3) { |
89 | | - animation-delay: 3s; |
| 93 | + animation-delay: calc(3s * var(--animation-speed)); |
90 | 94 | } |
91 | 95 |
|
92 | 96 | .chat-message:nth-child(4) { |
93 | | - animation-delay: 4s; |
| 97 | + animation-delay: calc(4s * var(--animation-speed)); |
94 | 98 | } |
95 | 99 |
|
96 | 100 | .message-bubble { |
@@ -190,7 +194,8 @@ body { |
190 | 194 | padding: 2rem; |
191 | 195 | box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); |
192 | 196 | opacity: 0; |
193 | | - animation: slideIn 0.6s ease-out forwards; |
| 197 | + animation: slideIn calc(0.6s * var(--animation-speed)) ease-out forwards; |
| 198 | + animation-delay: calc(1s * var(--animation-speed));; |
194 | 199 | } |
195 | 200 |
|
196 | 201 | .features h3 { |
@@ -245,17 +250,6 @@ body { |
245 | 250 | font-size: 0.9rem; |
246 | 251 | } |
247 | 252 |
|
248 | | -.chat-input-area { |
249 | | - border-top: 1px solid #e5e7eb; |
250 | | - padding: 1.5rem 2rem; |
251 | | - background: #f9fafb; |
252 | | - display: flex; |
253 | | - align-items: center; |
254 | | - gap: 1rem; |
255 | | - opacity: 0; |
256 | | - animation: slideIn 0.6s ease-out 8s forwards; |
257 | | -} |
258 | | - |
259 | 253 | @keyframes slideIn { |
260 | 254 | to { |
261 | 255 | opacity: 1; |
|
0 commit comments