Add script.js
This commit is contained in:
8
script.js
Normal file
8
script.js
Normal file
@@ -0,0 +1,8 @@
|
||||
// Optional: Add light fade-in effect
|
||||
window.addEventListener("DOMContentLoaded", () => {
|
||||
document.querySelector(".content").style.opacity = 0;
|
||||
setTimeout(() => {
|
||||
document.querySelector(".content").style.transition = "opacity 1s ease";
|
||||
document.querySelector(".content").style.opacity = 1;
|
||||
}, 100);
|
||||
});
|
||||
Reference in New Issue
Block a user