document.addEventListener("DOMContentLoaded", function() { let imagesArray = document.body.querySelectorAll('.no-cursor'); let cursor = document.querySelector('.wpcc-cursor'); imagesArray.forEach(function(image){ image.addEventListener('mouseenter', function(){ cursor.style.visibility = 'hidden'; console.log('enter'); }); image.addEventListener('mouseleave', function(){ cursor.style.visibility = 'visible';console.log('out'); }); }); });
DE