Imagine that I have a div
element with the following CSS:
.minha-div{
width:100px;height:100px;
background:linear-grandient(45deg, orange, red);
}
Is it possible that when I hover over this div
, it tells me the color of the pixel where the mouse is on, using JavaScript / jQuery?
I've already set the mouse position on the colored block, but I can not figure out how to get the color in that exact position.
Example of what has already been done: FIDDLE