A JavaScript plugin that provi

PanelSnap

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

Introduction

PanelSnap is a framework agnostic JavaScript library. This means that it works in every JavaScript project, wheter you use Vue, React, jQuery or plain vanilla JavaScript. It can snap both horizontally & vertically, connect with menu's and fire events based on user behaviour.

Installation

npm install panelsnap

import PanelSnap from 'panelsnap'; const instance = new PanelSnap();

<body> <section> ... </section> <section> ... </section> <section> ... </section> </body> Documentation

In its simplest form, PanelSnap does not need any configuration. For more advanced scenarios, PanelSnap can be aopted to about every usecase through its settings object.

Check out the documentation at https://panelsnap.com or the docs folder for all the different possibilities.

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.

版权声明:

1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。
2、网站不提供资料下载,如需下载请到原作者页面进行下载。