Binnenkomende meldingen
Notification panel where a new item slides in from below every few seconds and pushes the older ones up; the top one leaves when it is full. Shows on a homepage or dashboard that things are actually happening. With a pause button, stops when out of view, and a static list with reduced motion.
Vandaag binnen
How to use it
- Paste the HTML where the components should appear.
- Add the CSS to your stylesheet. All classes are prefixed, so nothing clashes with your own styles.
- Add the JavaScript and call init() with the element that contains the HTML.
<!-- Binnenkomende meldingen · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="anl">
<div class="anl__box">
<div class="anl__kop"><h3 class="anl__h">Vandaag binnen</h3><button class="anl__pz" type="button" aria-pressed="false">Pauzeer</button></div>
<ul class="anl__list"></ul>
</div>
</div>
</div>/* Binnenkomende meldingen · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie */
.anl{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:14px;background:#f4f3f1;font-family:'Switzer',system-ui,sans-serif;color:#0a0a0a}
.anl__box{width:min(360px,100%);height:100%;max-height:236px;display:flex;flex-direction:column;background:#fff;border:1px solid #e3e1dc;border-radius:4px;overflow:hidden}
.anl__kop{display:flex;align-items:center;justify-content:space-between;padding:10px 12px 8px;border-bottom:1px solid #eeece8}
.anl__h{margin:0;font-size:14px;font-weight:600;letter-spacing:-.01em}
.anl__pz{border:1px solid #d6d3cd;background:#fff;border-radius:4px;padding:4px 9px;font:500 12px 'Switzer',system-ui,sans-serif;color:#0a0a0a;cursor:pointer}
.anl__pz:hover{border-color:#0a0a0a}.anl__pz:focus-visible{outline:2px solid #F5480F;outline-offset:2px}
.anl__list{list-style:none;margin:0;padding:6px 8px 8px;flex:1;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden}
.anl__it{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:10px;padding:5px 6px;border-radius:4px;transform-origin:50% 100%}
.anl__it+.anl__it{border-top:1px solid #f0eeea}
.anl__ic{width:28px;height:28px;border-radius:4px;display:grid;place-items:center;font-size:11px;font-weight:700;color:#fff}
.anl__tx{min-width:0;display:flex;flex-direction:column;gap:1px}
.anl__tx strong{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.anl__tx span{font-size:12px;color:#6b6862;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.anl__tm{font-size:11px;color:#8b877f;align-self:start;padding-top:2px}
.anl__it.is-in{animation:anl-in .55s cubic-bezier(.2,.9,.25,1.15) both}
.anl__it.is-uit{animation:anl-uit .4s ease forwards}
@keyframes anl-in{from{opacity:0;transform:translateY(70%) scale(.92)}to{opacity:1;transform:none}}
@keyframes anl-uit{to{opacity:0;transform:translateY(-30%) scale(.96)}}
@media (prefers-reduced-motion:reduce){.anl__it.is-in,.anl__it.is-uit{animation:none}}// Binnenkomende meldingen · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie
// root = het element waarin de HTML staat
function init(root){
const box = root.querySelector('.anl'); if (!box) return;
const list = box.querySelector('.anl__list'), pz = box.querySelector('.anl__pz');
const data = [
['OA', '#F5480F', 'Offerteaanvraag dakkapel', 'Fam. Jansen, Zwolle'],
['BT', '#0a0a0a', 'Betaling ontvangen', 'Factuur 2026-0412 · € 1.240,00'],
['AF', '#3d6b4f', 'Afspraak bevestigd', 'Dinsdag 10:30 · Laan van Meerdervoort'],
['RV', '#7a5c2e', 'Nieuwe beoordeling', 'Bakkerij de Wit: 9,4 van 10'],
['OA', '#F5480F', 'Offerteaanvraag badkamer', 'Mevr. Yilmaz, Amersfoort'],
['TB', '#2f4a6b', 'Terugbelverzoek', 'Tussen 13:00 en 15:00 · Gouda'],
['BT', '#0a0a0a', 'Aanbetaling binnen', 'Project Kerkstraat 14 · € 3.500,00']
];
const rm = matchMedia('(prefers-reduced-motion: reduce)').matches;
const MAX = 4; let n = 0, timer = null, zichtbaar = true, gepauzeerd = false;
const maak = (d, anim) => {
const li = document.createElement('li'); li.className = 'anl__it' + (anim ? ' is-in' : '');
li.innerHTML = `<span class="anl__ic" style="background:${d[1]}" aria-hidden="true">${d[0]}</span><span class="anl__tx"><strong>${d[2]}</strong><span>${d[3]}</span></span><span class="anl__tm">nu</span>`;
return li;
};
const veroudere = () => list.querySelectorAll('.anl__tm').forEach((t, i, a) => { const m = (a.length - 1 - i) * 2; t.textContent = m ? m + ' min' : 'nu'; });
const volgende = () => {
const d = data[n++ % data.length];
const items = [...list.querySelectorAll('.anl__it:not(.is-uit)')];
if (items.length >= MAX) { const o = items[0]; o.classList.add('is-uit'); setTimeout(() => o.remove(), rm ? 0 : 380); }
setTimeout(() => { list.appendChild(maak(d, !rm)); veroudere(); }, items.length >= MAX && !rm ? 260 : 0);
};
const start = () => { if (!timer && zichtbaar && !gepauzeerd) timer = setInterval(volgende, 2200); };
const stop = () => { clearInterval(timer); timer = null; };
for (let i = 0; i < 3; i++) list.appendChild(maak(data[n++], false)); veroudere();
if (rm) { list.appendChild(maak(data[n++], false)); veroudere(); }
pz.addEventListener('click', () => { gepauzeerd = !gepauzeerd; pz.setAttribute('aria-pressed', String(gepauzeerd)); pz.textContent = gepauzeerd ? 'Hervat' : 'Pauzeer'; gepauzeerd ? stop() : start(); });
if ('IntersectionObserver' in window) new IntersectionObserver(es => { zichtbaar = es[0].isIntersecting; zichtbaar ? start() : stop(); }).observe(box);
if (rm) { gepauzeerd = true; pz.hidden = true; } else start();
}
init(document.querySelector('.jouw-container'));
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 →