UNPKG

panelsnap

Version:

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

40 lines (33 loc) 856 B
<!doctype html> <html lang="en-us"> <head> <meta charset="utf-8"> <title>PanelSnap - jQuery demo</title> <meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui"> <link href="https://fonts.googleapis.com/css?family=Lato:100,300" rel="stylesheet"> <link href="../../style.css" rel="stylesheet"> <style> section:nth-child(2) { min-height: calc(100vh + 200px); } </style> </head> <body> <section> <h1>First</h1> </section> <section> <h1>Second</h1> </section> <section> <h1>Third</h1> </section> <script src="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.js"></script> <script src="../../panelsnap.js"></script> <script> jQuery(function () { new PanelSnap(); }) </script> </body> </html>