// Minimal logo animation controller class LogoAnimator { constructor() { this.isAnimating = false; this.logoElement = null; } // Initialize with SVG element init(svgElement) { this.logoElement = svgElement; this.identifyNipples(); } // Identify nipple elements by their circular paths identifyNipples() { if (!this.logoElement) return; const paths = this.logoElement.querySelectorAll('path'); let nippleIndex = 0; paths.forEach((path) => { const d = path.getAttribute('d'); // Look for the specific circular nipple paths in the GOONDEX_Titty.svg if (d && d.includes('1463.5643,67.636337')) { path.classList.add('nipple-left'); nippleIndex++; } else if (d && d.includes('70.4489,0') && nippleIndex === 1) { path.classList.add('nipple-right'); nippleIndex++; } }); } // Start bouncing animation startBounce() { if (!this.logoElement || this.isAnimating) return; this.logoElement.classList.add('goondex-logo-animated'); this.isAnimating = true; } // Stop animation stopBounce() { if (!this.logoElement) return; this.logoElement.classList.remove('goondex-logo-animated'); this.isAnimating = false; } // Auto-start for loading screens autoStart(duration = 3000) { this.startBounce(); setTimeout(() => this.stopBounce(), duration); } } // Export for use in loading screens window.LogoAnimator = LogoAnimator;