Hey there! I'm currently working on a project where I have multiple buttons that, when hovered over, change the background-image of a specific div. However, instead of the images suddenly appearing on the screen, I would like them to fade in gradually.
If anyone could provide some guidance on achieving this without using jQuery, it would be greatly appreciated!
Below is a snippet of my code:
function link01() {
document.getElementById("hover-change").style.backgroundImage = "url(images/1.jpg)";
}
Thank you in advance for any help you can offer!