Skip to content
Graphics
Photos
Logo’s
Fonts
Codes
Audios
Graphics
Photos
Logo’s
Fonts
Codes
Audios
Facebook
X-twitter
Youtube
Pinterest
Submit
HTML
CSS
JS
Copy
Run
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Blur Image Reveal Part </title> <script src="https://code.jquery.com/jquery-3.4.1.min.js"></script> <style> body { margin:0; } .pic { text-align: center; position: relative; height:600px; } .blur { height: 100%; } .overlay { position: absolute; top: 0px; left: 0px; height: 100%; } </style> </head> <body> <div class="pic"> <svg class="blur" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%"> <image filter="url(#filter2)" xlink:href="https://images.pexels.com/photos/249798/pexels-photo-249798.png" width="100%" height="100%"></image> <filter id="filter2"> <fegaussianblur stdDeviation="5" /> </filter> <mask id="mask1"> <circle cx="-50%" cy="-50%" r="80" fill="white" filter="url(#filter2)" /> </mask> <image xlink:href="https://images.pexels.com/photos/249798/pexels-photo-249798.png" width="100%" height="100%" mask="url(#mask1)"></image> </svg> </div> <script> $('.pic').mousemove(function (event) { event.preventDefault(); var upX = event.clientX; var upY = event.clientY; var mask = $('#mask1 circle')[0]; mask.setAttribute("cy", (upY - 5) + 'px'); mask.setAttribute("cx", (upX) + 'px'); }); </script> </body> </html>
Code copied to clipboard!