Reo81/fingerspeak-translator
0
1// Future functionality for gesture recognition2document.querySelector('a').addEventListener('click', (e) => {3 e.preventDefault();4 const button = e.currentTarget;5 6 // Button press animation7 button.classList.add('scale-95');8 setTimeout(() => {9 button.classList.remove('scale-95');10 11 // Here would be the actual translation functionality12 alert('Gesture recognition starting! Show your hand to the camera.');13 }, 150);14});15 16// Add hover effects to gesture icons17const gestureIcons = document.querySelectorAll('.grid > div');18gestureIcons.forEach(icon => {19 icon.addEventListener('mouseenter', () => {20 icon.classList.add('scale-110', 'shadow-md');21 });22 23 icon.addEventListener('mouseleave', () => {24 icon.classList.remove('scale-110', 'shadow-md');25 });26});