Skip to content
Devix Open Source

The stack

Newest in front, older ones tucked behind, the rest queued — and the whole stack fans out when you hover it.

Live preview
<div class="demo demo--wide">
  <div class="demo-row">
    <button class="demo-btn" id="burst">Send eight at once</button>
    <button class="demo-btn" id="clear">Dismiss all</button>
  </div>
  <div class="demo-field">
    <label class="demo-label" for="max">On screen at once: <b id="maxValue">3</b></label>
    <input id="max" type="range" min="1" max="5" value="3">
  </div>
  <div class="demo-seg" id="positions">
    <button type="button" data-position="bottom-right" class="is-active">bottom-right</button>
    <button type="button" data-position="bottom-center">bottom-center</button>
    <button type="button" data-position="top-center">top-center</button>
    <button type="button" data-position="top-right">top-right</button>
  </div>
  <p class="demo-hint">Hover the stack to fan it out. Everything past the limit waits its turn.</p>
</div>