-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripts.js
More file actions
28 lines (24 loc) · 1.08 KB
/
scripts.js
File metadata and controls
28 lines (24 loc) · 1.08 KB
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
document.addEventListener("DOMContentLoaded", function () {
// Hover effect for menu sections to change the box shadow
const menuSections = document.querySelectorAll(".menu-section");
menuSections.forEach(section => {
section.addEventListener("mouseenter", () => {
section.style.boxShadow = "0 8px 16px rgba(0, 0, 0, 0.3)";
});
section.addEventListener("mouseleave", () => {
section.style.boxShadow = "0 4px 10px rgba(255, 193, 7, 0.5)";
});
});
// Contact links hover effect
const contactLinks = document.querySelectorAll(".contact-section a");
contactLinks.forEach(link => {
link.addEventListener("mouseover", () => {
link.style.color = "#e65100"; // Change color on hover
link.style.fontWeight = "bold"; // Make font bold on hover
});
link.addEventListener("mouseleave", () => {
link.style.color = "white"; // Reset color
link.style.fontWeight = "normal"; // Reset font weight
});
});
});