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

Beeld-hover · zoom, meeschuiven, onthullen New

Three hover states for framed photos: a slow zoom, a pan where a slightly enlarged photo follows the cursor, and a reveal where the colour photo slides over a grey version from the left. Frame and size stay put, only the image moves. For collections, projects or a showroom; with reduced motion there is no zoom and no pan.

Eiken eettafel met zes stoelen
Zoom
Showroom in een oud pakhuis in Amersfoort
Meeschuiven
Keramieken tafellamp met linnen kap
Onthullen

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.
<!-- Beeld-hover · zoom, meeschuiven, onthullen · NedDev · eigen werk. -->
<div class="jouw-container">
<div class="hbz">
<figure class="hbz__f"><a class="hbz__fr hbz__fr--zoom" href="#hv-beeld-zoom-set"><img src="https://neddev.com/lab-media/hv-beeld-zoom-set-1.webp" alt="Eiken eettafel met zes stoelen" width="900" height="491" loading="lazy"></a><figcaption class="hbz__c">Zoom</figcaption></figure>
<figure class="hbz__f"><a class="hbz__fr hbz__fr--pan" href="#hv-beeld-zoom-set"><img src="https://neddev.com/lab-media/hv-beeld-zoom-set-3.webp" alt="Showroom in een oud pakhuis in Amersfoort" width="900" height="502" loading="lazy"></a><figcaption class="hbz__c">Meeschuiven</figcaption></figure>
<figure class="hbz__f"><a class="hbz__fr hbz__fr--rev" href="#hv-beeld-zoom-set"><img class="hbz__grey" src="https://neddev.com/lab-media/hv-beeld-zoom-set-2.webp" alt="" width="900" height="491" loading="lazy"><img class="hbz__col" src="https://neddev.com/lab-media/hv-beeld-zoom-set-2.webp" alt="Keramieken tafellamp met linnen kap" width="900" height="491" loading="lazy"></a><figcaption class="hbz__c">Onthullen</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 →