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

Laadstanden in de knop New

Three ways to show a button is busy, inside the button itself: a spinning ring, three bouncing dots and a bar that fills up. The label stays invisible in place so the button keeps its width; aria-busy and a status line tell screen readers what is going on, and double clicks do nothing. Use the ring for payments, the dots for sending and the bar when you really know the progress (uploads). With reduced motion they pulse calmly instead of spinning.

How to use it

  1. Paste the HTML where the buttons 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.
<!-- Laadstanden in de knop · NedDev · eigen werk. -->
<div class="jouw-container">
<div class="kls">
<div class="kls__col">
<button class="kls__b" type="button" data-k="spin" data-msg="Betaling wordt verwerkt" data-ok="Betaald"><span class="kls__l">Betaal € 84,50</span><span class="kls__ld" aria-hidden="true"><span class="kls__spin"></span></span></button>
<button class="kls__b" type="button" data-k="dots" data-msg="Aanvraag wordt verstuurd" data-ok="Verstuurd"><span class="kls__l">Offerte aanvragen</span><span class="kls__ld" aria-hidden="true"><span class="kls__dots"><span></span><span></span><span></span></span></span></button>
<button class="kls__b" type="button" data-k="bar" data-msg="Foto's worden geüpload" data-ok="Geüpload"><span class="kls__l">Upload 6 foto's</span><span class="kls__ld" aria-hidden="true"><span class="kls__bar"><span class="kls__fill"></span></span></span></button>
</div>
<p class="kls__st" role="status"></p>
</div>
</div>

More buttons

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 →