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

Achtergrond kleurt mee per smaak New

Five ice cream flavours stacked; as you scroll the background blends from pistachio green via strawberry and mango to chocolate, with buttons on the right to jump to a flavour. Pure CSS with animation-timeline: scroll() on its own scroll box; a small script takes over without support. For an ice cream parlour product page, a collection page or a seasonal menu.

Pistache

Sicilaanse pistache, licht gezouten, met stukjes noot.

€ 2,20 per bol

Aardbei

Van een kwekerij in Made, alleen in juni en juli.

€ 2,20 per bol

Mango

Alphonso-mango, zonder zuivel en dus vegan.

€ 2,40 per bol

Stracciatella

Room uit Twente met flinters pure chocolade.

€ 2,20 per bol

Chocolade

70 procent cacao uit Ghana, gedraaid in Zwolle.

€ 2,40 per bol

How to use it

  1. Paste the HTML where the scroll effects 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.
<!-- Achtergrond kleurt mee per smaak · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="ks">
  <div class="ks__vak" tabindex="0" role="region" aria-label="Smaken van deze week. Scroll in dit vak, de achtergrond kleurt mee.">
    <div class="ks__bg" aria-hidden="true"></div>
    <div class="ks__s"><div class="ks__ijs" style="--b:#93b25c" aria-hidden="true"></div><div class="ks__t"><h3 class="ks__naam">Pistache</h3><p class="ks__p">Sicilaanse pistache, licht gezouten, met stukjes noot.</p><p class="ks__prijs">€ 2,20 per bol</p></div></div>
    <div class="ks__s"><div class="ks__ijs" style="--b:#e0535d" aria-hidden="true"></div><div class="ks__t"><h3 class="ks__naam">Aardbei</h3><p class="ks__p">Van een kwekerij in Made, alleen in juni en juli.</p><p class="ks__prijs">€ 2,20 per bol</p></div></div>
    <div class="ks__s"><div class="ks__ijs" style="--b:#f5a20f" aria-hidden="true"></div><div class="ks__t"><h3 class="ks__naam">Mango</h3><p class="ks__p">Alphonso-mango, zonder zuivel en dus vegan.</p><p class="ks__prijs">€ 2,40 per bol</p></div></div>
    <div class="ks__s"><div class="ks__ijs ks__ijs--strac" style="--b:#fffdf8" aria-hidden="true"></div><div class="ks__t"><h3 class="ks__naam">Stracciatella</h3><p class="ks__p">Room uit Twente met flinters pure chocolade.</p><p class="ks__prijs">€ 2,20 per bol</p></div></div>
    <div class="ks__s ks__s--donker"><div class="ks__ijs" style="--b:#24130c" aria-hidden="true"></div><div class="ks__t"><h3 class="ks__naam">Chocolade</h3><p class="ks__p">70 procent cacao uit Ghana, gedraaid in Zwolle.</p><p class="ks__prijs">€ 2,40 per bol</p></div></div>
  </div>
  <div class="ks__nav" role="group" aria-label="Spring naar een smaak">
    <button type="button" class="ks__knop" style="--c:#93b25c" aria-label="Naar Pistache" aria-current="true"></button>
    <button type="button" class="ks__knop" style="--c:#e0535d" aria-label="Naar Aardbei"></button>
    <button type="button" class="ks__knop" style="--c:#f5a20f" aria-label="Naar Mango"></button>
    <button type="button" class="ks__knop" style="--c:#fffdf8" aria-label="Naar Stracciatella"></button>
    <button type="button" class="ks__knop" style="--c:#24130c" aria-label="Naar Chocolade"></button>
  </div>
  <p class="ks__hint" aria-hidden="true">Scroll door de smaken</p>
</div>
</div>

More scroll effects

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 →