Services
Solutions
Industries
Regions
Book a call 085 369 7668 info@neddev.com

Pixelbeeld dat scherp wordt

A photo that starts as coarse blocks and sharpens in a few steps when you hover, focus or tap it; move away and it coarsens again. For a teaser of a new project or a reveal on a launch page. One SVG filter (flood, tile, composite, morphology), no canvas; with reduced motion it switches straight between sharp and coarse.

Fietspad met bomenrij door de polder
Nieuw: fietsroute WaterlandBeweeg over het beeld of tik erop

How to use it

  1. Paste the HTML where the components should appear.
  2. Add the CSS to your stylesheet. All classes are prefixed, so nothing clashes with your own styles.
  3. Add the JavaScript and call init() with the element that contains the HTML.
<!-- Pixelbeeld dat scherp wordt · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="pxs">
<svg class="pxs__defs" width="0" height="0" aria-hidden="true" focusable="false"><filter id="pxs-filter" x="0" y="0" width="100%" height="100%" color-interpolation-filters="sRGB"><feFlood x="12" y="12" width="1" height="1" result="pxs-p"/><feComposite in="pxs-p" in2="pxs-p" operator="over" width="25" height="25"/><feTile result="pxs-raster"/><feComposite in="SourceGraphic" in2="pxs-raster" operator="in"/><feMorphology operator="dilate" radius="12"/></filter></svg>
<figure class="pxs__fig" tabindex="0" aria-describedby="pxs-tip">
<img class="pxs__img" src="https://neddev.com/lab-media/site-hotel-5.webp" alt="Fietspad met bomenrij door de polder" draggable="false">
<figcaption class="pxs__cap"><strong>Nieuw: fietsroute Waterland</strong><span id="pxs-tip">Beweeg over het beeld of tik erop</span></figcaption>
</figure>
</div>
</div>

More components

Seen something you like?

Add it to your selection and send it over. We build your site around it, in your brand.

Get in touch →