I have a collection of images that I want to change to white when clicked, creating a fade effect. Essentially, when the image is clicked, it should transition from its original state to being completely white for a second. Additionally, I need the image to revert back to its original form when something else is clicked by the user.
Can this be achieved using JavaScript? If so, what specific aspects should I focus on (I struggle with graphics)?
I attempted to use opacity to accomplish this, but I do not want the background to show through the image.