I would like to use CSS filters in JavaScript.
Example of CSS filters:
.filter {
-webkit-filter: blur(20px); /* Blur filter */
-webkit-filter: invert(1); /* Invert filter */
-webkit-filter: hue-rotate(100deg); /* Rotate Hue */
...
}
For example, how can I make a blurred image using JavaScript?
<img id="image" onmouseover="ImageHover();" src="source.png"/>
while
function ImageHover() {
document.getElementById('image').??????='???'
}
I hope you guys understand what I want.