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

Productkaart · tweede foto en snel toevoegen New

Shop card that cross-fades to a second photo (worn or in use) on hover or focus and slides in a size bar to add straight away. Pick a size and the card announces what is in the cart via aria-live. On touch screens the size bar always sits below the photo and you swap the photo by tapping the image. For clothing, shoes and anything with variants.

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.
<!-- Productkaart · tweede foto en snel toevoegen · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="hpw">
<article class="hpw__card">
<div class="hpw__media">
<button class="hpw__swap" type="button" aria-label="Toon tweede foto"><img class="hpw__a" src="https://neddev.com/lab-media/hv-productkaart-wissel-1.webp" alt="Wollen trui in roestoranje, gevouwen" width="900" height="491" loading="lazy"><img class="hpw__b" src="https://neddev.com/lab-media/hv-productkaart-wissel-2.webp" alt="Dezelfde trui gedragen op straat in Utrecht" width="900" height="491" loading="lazy"></button>
<div class="hpw__sizes" role="group" aria-label="Snel toevoegen, kies een maat">
<button type="button" class="hpw__s">S</button><button type="button" class="hpw__s">M</button><button type="button" class="hpw__s">L</button><button type="button" class="hpw__s" disabled aria-label="XL, uitverkocht">XL</button>
</div>
</div>
<div class="hpw__info"><a class="hpw__n" href="#hv-productkaart-wissel">Wollen trui Roest</a><span class="hpw__p">€ 89,95</span></div>
<p class="hpw__live" aria-live="polite"></p>
</article>
</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 →