I keep getting the error
slides.addEventListener
is not a function.
How come?
Here is the code:
const slides = document.querySelectorAll('.home__slide');
slides.addEventListener('mouseenter', e => {
clearInterval(slideInterval);
});
I keep getting the error
slides.addEventListener
is not a function.
How come?
Here is the code:
const slides = document.querySelectorAll('.home__slide');
slides.addEventListener('mouseenter', e => {
clearInterval(slideInterval);
});