-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlogo.js
More file actions
29 lines (22 loc) · 997 Bytes
/
Copy pathlogo.js
File metadata and controls
29 lines (22 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
document.addEventListener('DOMContentLoaded', () => {
const keyIcon = document.querySelector('.key-icon');
const logoText = document.querySelector('.logo-text');
keyIcon.addEventListener('mouseover', () => {
keyIcon.style.animationDuration = '5s';
});
keyIcon.addEventListener('mouseout', () => {
keyIcon.style.animationDuration = '10s';
});
logoText.addEventListener('mouseover', () => {
const guru = logoText.querySelector('.guru');
const killi = logoText.querySelector('.killi');
guru.style.color = '#A52A2A'; // Darker red
killi.style.color = '#FFD700'; // Brighter gold
});
logoText.addEventListener('mouseout', () => {
const guru = logoText.querySelector('.guru');
const killi = logoText.querySelector('.killi');
guru.style.color = '#800000'; // Original red
killi.style.color = '#E0A75E'; // Original gold
});
});