-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
28 lines (28 loc) · 1.3 KB
/
script.js
File metadata and controls
28 lines (28 loc) · 1.3 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
(function (window, document, undefined) {
// code that should be taken care of right away
window.onload = init;
function init() {
const animated = document.getElementById("tube");
ended = false;
animated.addEventListener("animationend", () => {
ended = true;
setTimeout(() => {
text = document.getElementById("tube");
opacity = 0;
function increaseOpacity() {
opacity += 0.01; // Adjust the increment value as needed for smoother or faster animation
tube.style.opacity = opacity;
if (opacity < 1) {
requestAnimationFrame(increaseOpacity);
}
}
text.style.color = "#fff900";
listText = document.getElementsByClassName("glow");
for (let i = 0; i < listText.length; i++) {
listText[i].style.textShadow = "0 0 7px #fff000, 0 0 20px #ff6c00";
}
increaseOpacity();
}, 2e3);
});
}
})(window, document, undefined);