I have a strange question. This is strange because it will be very difficult for me to explain what I mean. I understand that I could get some negative reviews, but did not get another place to ask.
What I'm looking for is a method in CSS (or, if that is not possible, then JavaScript) to fade in on hover. I do not want him to gradually disappear or change the whole image. I want to have an image, and when I hover it over the mouse, the hovering part of the image changes, and the more I hover over the image, the more I could see another image. I hope this description is enough. Sorry, but I have no idea what it's called.
I did something similar to what I think here ( https://jsbin.com/xurokogicu/edit?html,css,output ) but this is in the scroll, I want this to happen when I hover the image with the mouse.
I hope you understand everything that I say here
Thanks in advance!
EDIT: Here are two photos to better understand my idea. A black line means that somewhere on this line (vertically) is the mouse pointer. If I hover over the left, the black line moves to the left and shows part of another image. Thus, first the image of the monkey appears first, and then, wherever I am, a black line appears that shows another image on the right side.


EDIT2: Guys, we found a living example of what I had in mind: jpegmini.com But with different images. Now I ask how I can do this or what it's called because my question remains unanswered. I would also change the name to others who are looking for it.
EDIT3: We found the ANSWER, this is exactly what I was looking for:
Js
var ctx = c.getContext("2d"), img = new Image(); // image to show img.onload = start; img.src = "link to img"; function start() { c.onmousemove = function(e) { var r = c.getBoundingClientRect(), x = e.clientX - r.left; ctx.clearRect(0, 0, c.width, c.height); ctx.drawImage(img, 0, 0, x, c.height, 0, 0, x, c.height); ctx.fillRect(x, 0, 5, c.height); }; }
CSS
#c { background: url(link to other img); background-size: cover; }
HTML
<canvas id=c width=620 height=400></canvas>