When the user hovers over the image and ONLY the image I want the orange divs to expand and display some content which are in p and h2 tags. Can someone edit my code and help me out? https://code.sololearn.com/WEf9pU89b0oy/?ref=app
Thank you soooo much! Was really helpful!
visph can you elaborate a little on how each line works in the js part if you don't mind?
for each image element inside .imgBx class elements got as array like from querySelectorAll('.imgBx img'), we define onmouseover and onmouseout event handler... in each function, we add or remove the 'over' class...