Home Work
SaaS developmentAI developmentAPI developmentMobile app developmentGoogle Ads managementHeadless ShopifyLaravel developmentNext.js developmentReact developmentTypeScript engineeringUI/UX designSEO & AEOEcommerce development
AI solutionsB2B platformsE-commerceHospitalityLead generationLogisticsEducationProcess automationSaaS platformsStartup MVPReal estateHealthcare
LegalHealthcareReal estateFinanceHospitality
The HagueRotterdamAmsterdamUtrechtEindhovenAlmereBredaArnhemNijmegenTilburgEnschedeGroningenLeidenDelftZoetermeerDen Bosch
Studio
AboutProcessLabBlogContact

Foto-slideshow met pauzeknop New

Full-bleed photo slideshow with a calm crossfade, an always visible pause button (WCAG 2.2.2), prev/next, arrow keys and swipe. Stops when off-screen, in a hidden tab and on hover or focus. Uses IntersectionObserver and pointer events; with reduced motion it starts paused and swaps without a transition.

Houten vakantiehuisje tussen de duinen bij Domburg

Slapen achter de duinen

Twaalf houten huisjes bij Domburg, vijf minuten lopen naar het strand.

Bekijk beschikbaarheid

How to use it

  1. Paste the HTML where the hero styles 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.
<!-- Foto-slideshow met pauzeknop · NedDev · eigen werk. -->
<div class="jouw-container">
<div class="hss" role="region" aria-roledescription="carrousel" aria-label="Foto's van Duinhuisjes Domburg">
<div class="hss__slides" aria-live="off">
<div class="hss__slide is-on" role="group" aria-roledescription="dia" aria-label="1 van 4"><img src="https://neddev.com/lab-media/hero-slideshow-1.webp" alt="Houten vakantiehuisje tussen de duinen bij Domburg" width="1584" height="672"></div>
<div class="hss__slide" role="group" aria-roledescription="dia" aria-label="2 van 4" aria-hidden="true"><img src="https://neddev.com/lab-media/hero-slideshow-2.webp" alt="Lichte woonkamer met houtkachel en uitzicht op de duinen" width="1376" height="768" loading="lazy"></div>
<div class="hss__slide" role="group" aria-roledescription="dia" aria-label="3 van 4" aria-hidden="true"><img src="https://neddev.com/lab-media/hero-slideshow-3.webp" alt="Leeg strand met paalhoofden bij zonsopkomst" width="1584" height="672" loading="lazy"></div>
<div class="hss__slide" role="group" aria-roledescription="dia" aria-label="4 van 4" aria-hidden="true"><img src="https://neddev.com/lab-media/hero-slideshow-4.webp" alt="Houten terras met twee fietsen en uitzicht over de duinen" width="1376" height="768" loading="lazy"></div>
</div>
<div class="hss__shade" aria-hidden="true"></div>
<div class="hss__txt">
<h2 class="hss__h">Slapen achter de duinen</h2>
<p class="hss__p">Twaalf houten huisjes bij Domburg, vijf minuten lopen naar het strand.</p>
<a class="hss__cta" href="#hero-slideshow">Bekijk beschikbaarheid</a>
</div>
<div class="hss__ctrl">
<button class="hss__btn hss__pause" type="button" aria-label="Slideshow pauzeren"><svg class="hss__ic-pause" viewBox="0 0 16 16" aria-hidden="true"><path d="M5 3v10M11 3v10"/></svg><svg class="hss__ic-play" viewBox="0 0 16 16" aria-hidden="true"><path d="M5 3l8 5-8 5z"/></svg></button>
<button class="hss__btn hss__prev" type="button" aria-label="Vorige foto"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M10 3L5 8l5 5"/></svg></button>
<span class="hss__count" aria-hidden="true">1 / 4</span>
<button class="hss__btn hss__next" type="button" aria-label="Volgende foto"><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M6 3l5 5-5 5"/></svg></button>
</div>
</div>
</div>

More hero styles

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 →