// Typing Text Effect const text = "Linky — Be smart. Be online."; let index = 0; function typeText() { if (index < text.length) { document.getElementById("typing-text").textContent += text.charAt(index); index++; setTimeout(typeText, 70); } } document.addEventListener("DOMContentLoaded", typeText); // Fade-in elements on scroll const fadeItems = document.querySelectorAll(".fade-item"); function showOnScroll() { fadeItems.forEach(item => { const rect = item.getBoundingClientRect(); if (rect.top < window.innerHeight - 50) { item.classList.add("visible"); } }); } window.addEventListener("scroll", showOnScroll); showOnScroll();