diff --git a/animations.js b/animations.js new file mode 100644 index 0000000..c4bdd03 --- /dev/null +++ b/animations.js @@ -0,0 +1,31 @@ +(function () { + const backToTopButton = document.getElementById("back-to-top"); + + if (backToTopButton) { + function toggleBackToTop() { + if (window.pageYOffset > 300) { + backToTopButton.classList.add("visible"); + } else { + backToTopButton.classList.remove("visible"); + } + } + + backToTopButton.addEventListener("click", function () { + window.scrollTo({ + top: 0, + behavior: "smooth", + }); + }); + + window.addEventListener("scroll", toggleBackToTop); + + toggleBackToTop(); + } + + const listItems = document.querySelectorAll("li"); + listItems.forEach((item, index) => { + if (!item.style.animationDelay) { + item.style.animationDelay = `${0.1 + index * 0.05}s`; + } + }); +})(); diff --git a/contact.html b/contact.html index 80f38cf..ebf30ab 100644 --- a/contact.html +++ b/contact.html @@ -1,58 +1,82 @@ -
- - -Contact:
-Support:
-Support:
+