From the code I observed the mouseover and mouseout doesn't work when you hover on other element inside each boxes. Here is a link to what I have done: https://jsfiddle.net/t9ax72wp/. can anyone assist me to resolve this problem since I am new to javascript. Thank you for your assistance in advance.
Here is the js code. click on the link to see the full code:
let boxes = document.getElementsByClassName("records");
for (let i = 0; i < boxes.length; i++) {
boxes[i].addEventListener("mouseover", showFullShape);
boxes[i].addEventListener("mouseout", normalShape);
}
function showFullShape(e) {
elem = e.target.querySelector(".shapes");
elem.classList.add("changeshape");
}
function normalShape(e) {
elem = e.target.querySelector(".shapes");
elem.classList.remove("changeshape");
}