A JavaScript plugin that provides snapping functionality to a set of panels within your interface.
Clone or download
Latest commit 1f48cc8 Jun 27, 2018

README.md

PanelSnap

Build Status npm

A JavaScript plugin that provides snapping functionality to a set of panels within your interface.

Installation

npm install panelsnap
import PanelSnap from 'panelsnap';

const instance = new PanelSnap();
<body>
  <section>
    ...
  </section>
  <section>
    ...
  </section>
  <section>
    ...
  </section>
</body>

Documentation

Check out the documentation at https://panelsnap.com or the docs folder for a working demo.

Credits

  • jellea for early feedback and brainpickings.
  • aalexandrov for small improvements & bugfixes.
  • akreitals for fixing keyboard navigation when disabled.
  • brumm far a panel count bug.
  • dpaquette for the offset option.
  • wudi96 for button navigation.