CoolFace
Apppublic

Upi1/cableprofit-navigator

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
script.js22 linesDownload Raw Back to root
1document.addEventListener('DOMContentLoaded', function() {2    // Smooth scrolling for anchor links3    document.querySelectorAll('a[href^="#"]').forEach(anchor => {4        anchor.addEventListener('click', function (e) {5            e.preventDefault();6            document.querySelector(this.getAttribute('href')).scrollIntoView({7                behavior: 'smooth'8            });9        });10    });11 12    // Animation for pricing cards13    const pricingCards = document.querySelectorAll('.hover\\:-translate-y-2');14    pricingCards.forEach(card => {15        card.addEventListener('mouseenter', () => {16            card.style.transform = 'translateY(-0.5rem)';17        });18        card.addEventListener('mouseleave', () => {19            card.style.transform = '';20        });21    });22});