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

Foto's uploaden en ordenen New

Photo gallery for a listing or request: add photos with the button or by dragging them in (shown immediately via FileReader), reorder by dragging or with the keyboard (Space to pick up, arrows to move, Space to drop, Esc to cancel), choose the main photo and delete with undo. Errors for non-images, too large or too many. Every move is announced. Animates with View Transitions where available; otherwise the order changes instantly.

Foto's van je woning

De eerste foto is de hoofdfoto. Versleep met de greep of gebruik Spatie en de pijltjes.

    How to use it

    1. Paste the HTML where the forms & inputs 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's uploaden en ordenen · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
    <div class="jouw-container">
    <div class="ugh">
      <div class="ugh__head">
        <h3 class="ugh__h">Foto's van je woning</h3>
        <span class="ugh__n" aria-live="polite"></span>
      </div>
      <p class="ugh__help" id="ugh-help">De eerste foto is de hoofdfoto. Versleep met de greep of gebruik Spatie en de pijltjes.</p>
      <ul class="ugh__grid" role="list"></ul>
      <p class="ugh__err" role="alert"></p>
      <div class="ugh__undo" hidden><span></span><button type="button">Ongedaan maken</button></div>
      <input type="file" class="ugh__file" id="ugh-file" accept="image/jpeg,image/png,image/webp" multiple hidden>
      <p class="ugh__sr" aria-live="assertive"></p>
    </div>
    </div>

    More forms & inputs

    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 →