Skip to content

Commit e6c078e

Browse files
committed
不知道
1 parent 11d8c0a commit e6c078e

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

docs/.vitepress/theme/components/TeamCard.vue

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -31,39 +31,6 @@ export default {
3131
}
3232
},
3333
methods: {
34-
startRainbowColorAnimation(textElId) {
35-
const rainbowColors = [
36-
'#FF0000', //
37-
'#FF7F00', //
38-
'#FFFF00', //
39-
'#00FF00', // 绿
40-
'#0000FF', //
41-
'#4B0082', //
42-
'#9400D3' //
43-
];
44-
45-
const targetName = '黎泽懿 Aionflux';
46-
const typingEl = document.getElementById(textElId);
47-
48-
if (!typingEl) return;
49-
50-
let colorIndex = 0;
51-
let lastText = '';
52-
53-
const colorChangeInterval = setInterval(() => {
54-
const currentText = typingEl.textContent;
55-
56-
// 只在文字包含目标名字时更新颜色
57-
if (currentText.includes(targetName)) {
58-
const html = currentText.replace(
59-
targetName,
60-
`<span class="rainbow-name" style="color: ${rainbowColors[colorIndex]}">${targetName}</span>`
61-
);
62-
typingEl.innerHTML = html;
63-
colorIndex = (colorIndex + 1) % rainbowColors.length;
64-
}
65-
}, 400);
66-
},
6734
setupTypingEffect(textElId, cursorElId, texts, typingSpeed = 100, deletingSpeed = 50) {
6835
const PAUSE_AFTER = 2000;
6936
const NEXT_DELAY = 500;
@@ -168,11 +135,6 @@ export default {
168135
animation: blink 1s steps(2, start) infinite;
169136
}
170137
171-
.rainbow-name {
172-
font-weight: 600;
173-
transition: color 0.3s ease-in-out;
174-
}
175-
176138
@keyframes blink {
177139
0%, 100% { opacity: 1; }
178140
50% { opacity: 0; }

0 commit comments

Comments
 (0)