publicidad cabecera


 

ÚLTIMAS NOTICIAS

Contador

// Animación de entrada para posts document.addEventListener('DOMContentLoaded', function() { const posts = document.querySelectorAll('.index .post, .archive .post'); const observer = new IntersectionObserver((entries) => { entries.forEach(entry => { if (entry.isIntersecting) { entry.target.classList.add('visible'); } }); }, { threshold: 0.1 }); posts.forEach(post => { observer.observe(post); }); // Efecto hover mejorado const featuredItems = document.querySelectorAll('.featured li'); featuredItems.forEach(item => { item.addEventListener('mouseenter', function() { this.style.zIndex = '10'; }); item.addEventListener('mouseleave', function() { this.style.zIndex = '1'; }); }); });